Hazrat Mufti Mahmood Hasan Gangohi (rahmatullahi ‘alaihi) said:

Do not attempt to repel disturbing thoughts. Instead, engage in excessive durood shareef. One will never be successful if one tries to repel these thoughts.

It is like a person who goes on an errand to the marketplace. He will hear many different noises, the blaring hooters, and the barking of dogs etc. and he will also see various items. Despite all these distractions, he will still carry out the errand. (In fact, he will not tolerate the slightest disturbance in his work and he will ensure that the work is accomplished.) (Malfoozaat of Faqeehul Ummat, vol. 1, pg. 410)