He hit upon a great idea for a birthday gift.
I hit upon a great idea for Amy's party while I was walking to school today.
How old was Einstein when he hit upon the idea of relativity?
A: This banana pizza is delicious!
B: Thanks. I hit upon the idea while at the zoo yesterday.