Have you offered two rak'ahs? He said: No. Upon this he said: Then observe (them).

Sahih Muslim Book 7 Hadith 71

Sahih Muslim #875 d

The Book of Prayer - Friday 7:71

Jabir b. 'Abdullah reported that a person came (in the Mosque) while the Messenger of Allah (ﷺ) was delivering the sermon on Friday (standing) on the pulpit. He (the Holy Prophet) said to him:

Have you offered two rak'ahs? He said: No. Upon this he said: Then observe (them).

Chapter: Greeting (prayers upon entering the masjid) while the Imam is preaching

Grade: Sahih