It is narrated from Habib bin Abi Thabit (may Allah have mercy on him) that Sayyiduna Hassan bin Thabit (may Allah be pleased with him) recited some of his verses to the Prophet (peace and blessings be upon him) (whose meaning is): "I bear witness, by the leave of Allah, that Muhammad (peace and blessings be upon him) is the Messenger of the One Who is above the lofty heavens; and that Abu Yahya (Sayyiduna Zakariyya, peace be upon him) and Sayyiduna Yahya (peace be upon him), both of them, have deeds in their religion that are accepted in the court of Allah; and that the brother of al-Ahqaf (Sayyiduna Hud, peace be upon him), when he stood among his people, stood among them (upon the truth) purely for the sake of Allah and acted with justice." The Prophet (peace and blessings be upon him) said: "And I (also bear witness to the same)." Abu Ya'la al-Mawsili recorded this hadith.
Hadith Gradingمحدثین:سكت عنه البوصيري، مرسل؛ ورجاله ثقات
Hadith Takhrij«أبو يعلى (4/363): من طريق أبي حيان التيمي عن حبيب بن أبي ثابت عن النبي ﷺ؛ قال الذهبي والهيثمي: مرسل، وصوب السناري أنه مرسل على ظاهره. حبيب تابعي ثقة يدلس (من الحفظ)» «أخرجه مجمع الزوائد ومنبع الفوائد برقم: 43، وأخرجه المطالب العالية بزوائد المسانيد الثمانية برقم: 3017، 4017»