błądzić myślami

Etymology
lit. 'to stray with thoughts'.

Verb

 * 1)  to zone out, to be lost in thought