Wander Off Definition

verb
He got bored and wandered off.
Wiktionary