The Messenger of Allah ﷺ led us in the noon prayer, and at the back of the rows was a man who performed the prayer poorly. When the Messenger of Allah ﷺ gave the closing salutation, he called out to him, "So-and-so, do you not fear Allah? Do you not see how you are praying? You people think that something of what you do is hidden from me. By Allah, I see what is behind me just as I see what is in front of me."
حدثنا يزيد قال أخبرنا محمد يعني ابن إسحاق عن سعيد بن أبي سعيد المقبري
قال صلى بنا رسول الله ﷺ الظهر وفي مؤخر الصفوف رجل فأساء الصلاة فلما سلم ناداه رسول الله ﷺ يا فلان ألا تتقي الله ألا ترى كيف تصلي إنكم ترون أنه يخفى علي شيء مما تصنعون والله إني لأرى من خلفي كما أرى من بين يدي
No references are available.
Its chain of transmission is sahih. It is also found in Muslim 1/319, no. 423, with similar wording, concerning the prayer, regarding the command to perform the prayer well and complete it, and in Nasai 2/119.