A man entered the mosque on Friday while the Prophet ﷺ was delivering the sermon.The Prophet ﷺ asked him, "Have you prayed?"The man replied, "No."He said, "Stand up and pray two rakahs."
حدثنا علي بن عبد الله قال حدثنا سفيان عن عمرو سمع
دخل رجل يوم الجمعة والنبي ﷺ يخطب فقال أصليت قال لا قال قم فصل ركعتين
Both of them [Bukhari and Muslim] narrated from him together the hadith of Shuba, from Amr, from Jabir, "When one of you comes while the imam is delivering the sermon."He said, Rawh bin Qasim bin Yazee followed him in narrating this from him. It was also narrated by Ibn Jurayj, Hammad bin Zayd, Ibn Uyayna, Ayub, Habib Abu Yahya, and Waraqa, from Amr, that a man entered the masjid and he was asked, "Have you prayed?"
I say, the narration that the Hafiz, may Allah have mercy on him, referred to is found in Sunan Daraqutni, vol. 2, p. 15, and in its chain is Yahya bin Ghaylan, whom the Hafiz described in Taqrib as "acceptable." It is narrated from him by Yahya, from Abdullah bin Bazi.Hafiz Dhahabi said in Mizan, "Daraqutni said, 'Weak in hadith, but not abandoned.'" Ibn Adi said, "He is not reliable as a source, and he was the judge of Tustar. Most of his hadiths are not well preserved."