Sulayman bin Buraydah (may Allah have mercy on him) narrated from his father (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) heard a man making an announcement about a red camel, so he (peace and blessings be upon him) said: "May you not find it! Mosques are only for the purpose for which they were built."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 4344