كتاب الْمَسَاجِدِ وَمَوَاضِعِ الصَّلاَةِ
5  
The Book of Mosques and Places of Prayer
(18)
Chapter: The prohibition of making lost property announcements in the masjid, and what should be said by one who hears a person making such an announcement
(18)
باب النَّهْىِ عَنْ نَشْدِ الضَّالَّةِ، فِي الْمَسْجدِ وَمَا يَقُولُهُ مَنْ سَمِعَ النَّاشِدَ ‏
Sahih Muslim 569 b

Sulaiman b. Buraida reported on the authority of his father that when the Messenger of Allah (ﷺ) had said prayer a man stood up and said:

Who called for a red camel? (Upon this) the Messenger of Allah (ﷺ) said: May it not be restored to you! The mosques are built for what they are meant.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا وَكِيعٌ، عَنْ أَبِي سِنَانٍ، عَنْ عَلْقَمَةَ بْنِ مَرْثَدٍ، عَنْ سُلَيْمَانَ بْنِ بُرَيْدَةَ، عَنْ أَبِيهِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم لَمَّا صَلَّى قَامَ رَجُلٌ فَقَالَ مَنْ دَعَا إِلَى الْجَمَلِ الأَحْمَرِ فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ لاَ وَجَدْتَ إِنَّمَا بُنِيَتِ الْمَسَاجِدُ لِمَا بُنِيَتْ لَهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 569b
In-book reference : Book 5, Hadith 101
USC-MSA web (English) reference : Book 4, Hadith 1156
  (deprecated numbering scheme)