take somebody's mind off something
take (one's) mind off (something)
To stop or to cause one to stop thinking about something, typically a worry or concern. Playing video games after work helps me to take my mind off my work for a while—and sometimes that's when I get my best ideas. Exercising will take your mind off your problems and give you time to decompress.