Sunan Ibn Majah, Book 5, Hadith 1167 (In-Book) ⓘ
It was narrated that Abu Sa’eed said: “A man entered the mosque when the Prophet was delivering the sermon. He said: ‘Have you prayed?’ He said: ‘No.’ He said: ‘Then pray two Rak’ah.’”
حَدَّثَنَا مُحَمَّدُ بْنُ الصَّبَّاحِ، أَنْبَأَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنِ ابْنِ عَجْلاَنَ، عَنْ عِيَاضِ بْنِ عَبْدِ اللَّهِ، عَنْ أَبِي سَعِيدٍ، قَالَ جَاءَ رَجُلٌ وَالنَّبِيُّ ـ صلى الله عليه وسلم ـ يَخْطُبُ فَقَالَ " أَصَلَّيْتَ " . قَالَ لاَ . قَالَ " فَصَلِّ رَكْعَتَيْنِ " .
also referenced under: Hadith 1113 (Reference) & Volume 2, Book 5, Hadith 1113 (DarusSalam)