To come into someone's thoughts suddenly and fleetingly.
to occur to someone when unexpected; to surprise