One day the Messenger of Allah ﷺ led the prayer. Then turning (towards his Companions) he said: O you man, why don't you say your prayer well? Does the observer of prayer not see how he is performing the prayer, for he performs it for himself? By Allah, I see behind me as I see in front of me. (Using translation from Muslim 423)
صَلَّى رَسُولُ اللهِ ﷺ يَوْمًا ثُمَّ انْصَرَفَ فَقَالَ يَا فُلَانُ أَلَا تُحْسِنُ صَلَاتَكَ؟ أَلَا يَنْظُرُ الْمُصَلِّي إِذَا صَلَّى كَيْفَ يُصَلِّي فَإِنَّمَا يُصَلِّي لِنَفْسِهِ إِنِّي وَاللهِ لَأُبْصِرُ مَنْ وَرَائِي كَمَا أُبْصِرُ مَنْ بَيْنِ يَدِيَّ