Abu Hurairah (RA) reported: The Messenger of Allah (ﷺ) said: If anyone bears a man crying out in the mosque about something lie has lost, he should say: May Allah not restore it to you, for the mosques were not built for this.
Hadith ReferenceSahih Muslim / The Book of Mosques and Places of Prayer / Hadith: 568