It is narrated from Sayyiduna Jabir (may Allah be pleased with him) that a man entered while the Prophet (peace and blessings be upon him) was delivering the sermon, and the Prophet (peace and blessings be upon him) ordered him to pray two rak'ahs.
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6675