"The Messenger of Allah performed prayer, then a man said: 'Who was looking for the red camel?' The Prophet said: 'May you not find it! The mosques were built for that for which they were built.'" (Using translation from Ibn Mājah 765)
صَلَّى رَسُولُ اللَّهِ ﷺ فَقَالَ رَجُلٌ مَنْ دَعَا إِلَى الْجَمَلِ الْأَحْمَرِ فَقَالَ رَسُولُ اللَّهِ ﷺ «لَا وَجَدْتَ إِنَّمَا بُنِيَتِ الْمَسَاجِدُ لِمَا بُنِيَتْ لَهُ»