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.
bukhari:6638ʿUmar b. Ḥafṣ from my father > al-Aʿmash > al-Maʿrūr > Abū Dhar > Āntahayt Ilayh /

I reached him (the Prophet ﷺ ) while in the shade of the Kaʿba; he was saying, "They are the losers, by the Lord of the Kaʿba! They are the losers, by the Lord of the Kaʿba!" I said (to myself ), "What is wrong with me? Is anything improper detected in me? What is wrong with me? Then I sat beside him and he kept on saying his statement. I could not remain quiet, and Allah knows in what sorrowful state I was at that time. So I said, ' Who are they (the losers)? Let My father and mother be sacrificed for you, O Messenger of Allah ﷺ!" He said, "They are the wealthy people, except the one who does like this and like this and like this (i.e., spends of his wealth in Allah's Cause).  

البخاري:٦٦٣٨حَدَّثَنَا عُمَرُ بْنُ حَفْصٍ حَدَّثَنَا أَبِي حَدَّثَنَا الأَعْمَشُ عَنِ الْمَعْرُورِ عَنْ أَبِي ذَرٍّ قَالَ

انْتَهَيْتُ إِلَيْهِ وَهُوَ يَقُولُ فِي ظِلِّ الْكَعْبَةِ هُمُ الأَخْسَرُونَ وَرَبِّ الْكَعْبَةِ هُمُ الأَخْسَرُونَ وَرَبِّ الْكَعْبَةِ قُلْتُ مَا شَأْنِي أَيُرَى فِيَّ شَىْءٌ مَا شَأْنِي فَجَلَسْتُ إِلَيْهِ وَهْوَ يَقُولُ فَمَا اسْتَطَعْتُ أَنْ أَسْكُتَ وَتَغَشَّانِي مَا شَاءَ اللَّهُ فَقُلْتُ مَنْ هُمْ بِأَبِي أَنْتَ وَأُمِّي يَا رَسُولَ اللَّهِ قَالَ الأَكْثَرُونَ أَمْوَالاً إِلاَّ مَنْ قَالَ هَكَذَا وَهَكَذَا وَهَكَذَا  


See similar narrations below:

Collected by Bayhaqī
bayhaqi:19813ʿUmar b. Ḥafṣ from his father > al-Aʿmash > al-Maʿrūr b. Sūwayd > Abū Dhar > Āntahayt Ilayh /

[Machine] I arrived at him while he was saying in the shade of the Kaaba, "They are the ones who will incur a loss." By the Lord of the Kaaba, I said, "What is my concern? Does he see something in me?" So I sat down while he was saying, "I couldn't remain silent, and my mind was overwhelmed by what Allah willed. So I said, "Who are they, O Messenger of Allah, by my father and mother?" He said, "The majority of them are those who possess wealth, except those who say this and this and this." Abu Abdullah Al-Hafiz informed us, Abu Ja'far Muhammad ibn Salih ibn Hane' told us, Al-Sari ibn Khuza'ima told us, Umar ibn Hafs told us, my father told us, Al-Amash mentioned it.  

البيهقي:١٩٨١٣عَنْ عُمَرَ بْنِ حَفْصٍ عَنْ أَبِيهِ عَنِ الْأَعْمَشِ عَنِ الْمَعْرُورِ بْنِ سُوَيْدٍ عَنْ أَبِي ذَرٍّ ؓ قَالَ

انْتَهَيْتُ إِلَيْهِ وَهُوَ يَقُولُ فِي ظِلِّ الْكَعْبَةِ هُمُ الْأَخْسَرُونَ وَرَبِّ الْكَعْبَةِ قُلْتُ مَا شَأْنِي؟ أَيَرَى فِيَّ شَيْئًا فَجَلَسْتُ وَهُوَ يَقُولُ فَمَا اسْتَطَعْتُ أَنْ أَسْكُتَ وَتَغَشَّانِي مَا شَاءَ اللهُ فَقُلْتُ مَنْ هُمْ بِأَبِي أَنْتَ وَأُمِّي يَا رَسُولَ اللهِ؟ قَالَ الْأَكْثَرُونَ أَمْوَالًا إِلَّا مَنْ قَالَ هَكَذَا وَهَكَذَا وَهَكَذَا أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو جَعْفَرٍ مُحَمَّدُ بْنُ صَالِحِ بْنِ هَانِئٍ ثنا السَّرِيُّ بْنُ خُزَيْمَةَ ثنا عُمَرُ بْنُ حَفْصٍ ثنا أَبِي ثنا الْأَعْمَشُ فَذَكَرَهُ