From Longman Dictionary of Contemporary Englishsomebody’s mind wanderssomebody’s mind wandersATTENTIONif your mindwanders, you no longer payattention to something, especially because you are boredHer mind was beginning to wander. →mind
Examples from the Corpus
somebody’s mind wanders• I'm sorry, my mind was wandering. What did you say?