Eknath Easwaran said this quote

Attention can be trained very naturally, with affection, just as you train a puppy. When something distracts your attention, you say “Come back” and bring it back again. With a lot of training, you can teach your mind to come running back to you when you call, just like a friendly pup.