Sayyiduna Abu Dharr (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings be upon him) said: Allah Almighty remains attentive to the servant’s prayer as long as he does not turn away here and there; but when he turns his face away, Allah Almighty turns away from him.
Hadith Referenceالفتح الربانی / أبواب الأذ كار الواردة عقب الصلاة / 1909