It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) that a man entered the mosque while the Prophet (peace and blessings be upon him) was standing on the pulpit delivering the Friday sermon. (The man was about to sit down.) The Prophet (peace and blessings be upon him) asked: "Have you prayed?" He replied: "No." The Prophet (peace and blessings be upon him) said: "Pray two rak‘ahs."
Hadith Referenceالسنن المأثورة / باب ما جاء في الصلاة في السفر / 18
Hadith Takhrijصحیح بخاری، الجمعة، باب من جاء والامام يخطب، رقم 931؛ صحیح مسلم، الجمعة، باب التحية والامام يخطب، رقم: 875