Sahih Muslim 423
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
يَا فُلاَنُ أَلاَ تُحْسِنُ صَلاَتَكَ أَلاَ يَنْظُرُ الْمُصَلِّي إِذَا صَلَّى كَيْفَ يُصَلِّي فَإِنَّمَا يُصَلِّي لِنَفْسِهِ إِنِّي وَاللَّهِ لأُبْصِرُ مَنْ وَرَائِي كَمَا أُبْصِرُ مَنْ بَيْنَ يَدَىَّ "
Abu Huraira reported:
one day the Messenger of Allah (ﷺ) led the prayer. Then turning (towards his Companions) he said: 0 you, the 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.
Full reference and source
Sahih Muslim 423 In-book : Book 4, Hadith 119 USC-MSA web (English) : Book 4, Hadith 853 (deprecated)
View source on Sunnah.com (opens in a new tab)