Stray thoughts do not spoil the prayer
Question
All kinds of thoughts come during prayer, and in sajda supplications begin to flow from the heart. Does this cause any harm to the prayer or not? And if it does, what should be done to remove it?
Answer
The mere coming of thoughts or the flowing of a supplication from the heart does not impair the prayer. One should pray while envisioning the greatness and majesty of Allah Most High, [with the awareness] that “I am seeing Him and He is seeing me.” And if the etiquettes (adab)
Source: Fatawa Mahmudiyya
Preview. The full text opens with JavaScript enabled.