It was narrated from Abu 'Abdullah, the freed slave of Shaddad bin Had that:He heard Abu Hurairah say: "I heard the Messenger of Allah say: 'Whoever hears a man making a lost-and-found announcement in the mosque, let him say: "May Allah not return it to you!" For the mosques were not built for that
Hadith No. 767
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Sahih
Shuaib Al Arnaut:
Sahih
Zubair Ali Zai:
Sahih Muslim