is reliable.
Al-Ṭabarānī also narrated the report in al-Kabīr through Ibn Sīrīn—or someone else—who said: “Ibn Masʿūd heard a man announcing a lost animal in the mosque; he silenced him, rebuked him, and said, ‘We have been forbidden to do that.’” Al-Mundhirī, followed by al-Haythamī, commented: “Ibn Sīrīn never heard directly from Ibn Masʿūd.”
I add: Ibn al-Sunnī transmitted it through al-Shaʿbī, who said … and he cited it with the wording: “He angered him, whereupon a man said, ‘Abū ʿAbd al-Raḥmān, you have never been rude before!’ He replied, ‘We have been commanded to do so.’” All the narrators in its chain are trustworthy, yet it is likewise interrupted, for al-Shaʿbī—by unanimous agreement—did not hear from Ibn Masʿūd.
Anyone who hears such an announcement must say to the proclaimer, “May Allah never restore it to you, for the mosques were not built for that purpose,” because the Prophet ﷺ ordered: “Whoever hears a man announcing a lost animal in the mosque, let him say …” and so forth; in another wording: “May Allah never bring it back to you.”
This ḥadith comes through Abū Hurayrah, and it was heard from him by Abū ʿAbd Allah, the client of Shaddād ibn al-Hād. Muslim, Ibn Mājah, Ibn al-Sunnī, al-Bayhaqī, and Aḥmad all recorded it; the alternate wording belongs to the last two.