"I heard Abu Al-Ahwas saying to us in a gathering with Ibn Al-Musayyab when Ibn Al-Musayyab was sitting there, that he had heard Abu Dharr say: The Messenger of Allah ﷺ said: "Allah (SWT) continues to look upon His slave while he is praying, so long as he does not turn away. If he turns his face away, He turns away from him."
قَالَ رَسُولُ اللَّهِ ﷺ لاَ يَزَالُ اللَّهُ ﷻ مُقْبِلاً عَلَى الْعَبْدِ فِي صَلاَتِهِ مَا لَمْ يَلْتَفِتْ فَإِذَا صَرَفَ وَجْهَهُ انْصَرَفَ عَنْهُ