Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:23044ʿAbdullāh b. al-Walīd And Muʾammal > Sufyān > ʿAlqamah b. Marthad > Sulaymān b. Buraydah from his father > Aʿrābī

[Machine] "Who prayed for the red camel after Fajr in the mosque?" so the Messenger of Allah ﷺ said, "No, you did not find it, you did not find it, you did not find it. These houses were only built, and these mosques were only built for it."  

أحمد:٢٣٠٤٤حَدَّثَنَا عَبْدُ اللهِ بْنُ الْوَلِيدِ وَمُؤَمَّلٌ قَالَا حَدَّثَنَا سُفْيَانُ حَدَّثَنَا عَلْقَمَةُ بْنُ مَرْثَدٍ عَنْ سُلَيْمَانَ بْنِ بُرَيْدَةَ عَنْ أَبِيهِ أَنَّ أَعْرَابِيًّا قَالَ

فِي الْمَسْجِدِ مَنْ دَعَا لِلْجَمَلِ الْأَحْمَرِ بَعْدَ الْفَجْرِ؟ فَقَالَ رَسُولُ اللهِ ﷺ لَا وَجَدْتَهُ لَا وَجَدْتَهُ لَا وَجَدْتَهُ إِنَّمَا بُنِيَتْ هَذِهِ الْبُيُوتُ وَقَالَ مُؤَمَّلٌ هَذِهِ الْمَسَاجِدُ لِمَا بُنِيَتْ لَهُ  


See similar narrations below:

Collected by Muslim, Ibn Mājah, Ibn Ḥibbān
muslim:569aḤajjāj b. al-Shāʿir > ʿAbd al-Razzāq > al-Thawrī > ʿAlqamah b. Marthad > Sulaymān b. Buraydah from his father

Who had called out for the 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.  

مسلم:٥٦٩aوَحَدَّثَنِي حَجَّاجُ بْنُ الشَّاعِرِ حَدَّثَنَا عَبْدُ الرَّزَّاقِ أَخْبَرَنَا الثَّوْرِيُّ عَنْ عَلْقَمَةَ بْنِ مَرْثَدٍ عَنْ سُلَيْمَانَ بْنِ بُرَيْدَةَ عَنْ أَبِيهِ أَنَّ رَجُلاً نَشَدَ فِي الْمَسْجِدِ فَقَالَ

مَنْ دَعَا إِلَى الْجَمَلِ الأَحْمَرِ فَقَالَ النَّبِيُّ ﷺ لاَ وَجَدْتَ إِنَّمَا بُنِيَتِ الْمَسَاجِدُ لِمَا بُنِيَتْ لَهُ  

ibnmajah:765ʿAlī b. Muḥammad > Wakīʿ > Abū Sinān Saʿīd b. Sinān > ʿAlqamah b. Marthad > Sulaymān b. Buraydah from his father

"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.'"  

ابن ماجة:٧٦٥حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ حَدَّثَنَا وَكِيعٌ عَنْ أَبِي سِنَانٍ سَعِيدِ بْنِ سِنَانٍ عَنْ عَلْقَمَةَ بْنِ مَرْثَدٍ عَنْ سُلَيْمَانَ بْنِ بُرَيْدَةَ عَنْ أَبِيهِ قَالَ

صَلَّى رَسُولُ اللَّهِ ﷺ فَقَالَ رَجُلٌ مَنْ دَعَا إِلَى الْجَمَلِ الأَحْمَرِ فَقَالَ النَّبِيُّ ﷺ لاَ وَجَدْتَهُ إِنَّمَا بُنِيَتِ الْمَسَاجِدُ لِمَا بُنِيَتْ لَهُ  

ibnhibban:1652ʿUmar b. Muḥammad al-Hamdānī > Muḥammad b. Bashhār > Muʾammal b. Ismāʿīl > Sufyān > ʿAlqamah b. Marthad > Sulaymān b. Buraydah from his father

"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)  

ابن حبّان:١٦٥٢أَخْبَرَنَا عُمَرُ بْنُ مُحَمَّدٍ الْهَمْدَانِيُّ قَالَ حَدَّثَنَا مُحَمَّدُ بْنُ بَشَّارٍ قَالَ حَدَّثَنَا مُؤَمَّلُ بْنُ إِسْمَاعِيلَ قَالَ حَدَّثَنَا سُفْيَانُ عَنْ عَلْقَمَةَ بْنِ مَرْثَدٍ عَنْ سُلَيْمَانَ بْنِ بُرَيْدَةَ عَنْ أَبِيهِ قَالَ

صَلَّى رَسُولُ اللَّهِ ﷺ فَقَالَ رَجُلٌ مَنْ دَعَا إِلَى الْجَمَلِ الْأَحْمَرِ فَقَالَ رَسُولُ اللَّهِ ﷺ «لَا وَجَدْتَ إِنَّمَا بُنِيَتِ الْمَسَاجِدُ لِمَا بُنِيَتْ لَهُ»