enter one's mind
Also, enter one's head. Occur to one, come into one's consciousness. This expression is most often used negatively, as in It didn't enter my mind that he'd want to join us, or Run for office? It never entered my head.
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.