"A man enter the Masjid and performed Salat while the Messenger of Allah (ﷺ) was sitting…

Jami` at-Tirmidhi Book 42 Hadith 5

Jami` at-Tirmidhi #2692

Chapters on Seeking Permission 42:5

Narrated Abu Hurairah:

"A man enter the Masjid and performed Salat while the Messenger of Allah (ﷺ) was sitting at the back of the Masjid. Then he came to greet him, so the Prophet (ﷺ) said: "Wa Alaikum (and upon you); go back and pray for indeed you have not prayed.'" And he mentioned the Hadith in its entirety.

Chapter: What Has Been Related About How To Return The Salam

Grade: Sahih (Darussalam)