That sounds suspiciously like the Isaac Newton story.
http://www.all-creatures.org/stories/newton-atheist.html
I don’t know - maybe that’s where the story, or the idea for the Physics teacher to do it, originated from.
But I never forgot it as it demonstrates what a stretch it is to say something comes from nothing...and really irks the liberal/atheists!