It was narrated that Jabir bin ‘Abdullah said:“Sulaik Ghatafani entered the mosque when the Prophet (ﷺ) was delivering the sermon. He said: ‘Have you prayed?’ He said: ‘No.’ He said: ‘Then perform two Rak’ah.’”
حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنْ عَمْرِو بْنِ دِينَارٍ، سَمِعَ جَابِرًا، وَأَبُو الزُّبَيْرِ، سَمِعَ جَابِرَ بْنَ عَبْدِ اللَّهِ، قَالَ دَخَلَ سُلَيْكٌ الْغَطَفَانِيُّ الْمَسْجِدَ وَالنَّبِيُّ ـ صلى الله عليه وسلم ـ يَخْطُبُ . فَقَالَ " أَصَلَّيْتَ؟ " . قَالَ: لاَ . قَالَ " فَصَلِّ رَكْعَتَيْنِ " .وَأَمَّا عَمْرٌو فَلَمْ يَذْكُرْ سُلَيْكًا .
IbnMaja
Establishing the Prayer and the Sunnah Regarding Them • Hadith 1112