I was walking with the Prophet ﷺ one evening through the lava field of Madinah when Mount Uhud came into view. He said, "Abu Dharr, I would not wish to have gold the size of Uhud and let one night, or three nights, pass with a single Dinar of it still with me, except what I set aside to repay a debt. Rather, I would distribute it among the servants of Allah like this, and like this, and like this," gesturing with his hand to his right, his left, and behind him.Then he said, "Abu Dharr."I replied, "At your service, Messenger of Allah."He said, "Those who have the most will be those with the least…" and he continued the hadith.
كنت أمشي مع النبي ﷺ في حرة المدينة عشاء، استقبلنا أحد، فقال: يا أبا ذر، ما أحب أن أحدا لي ذهبا، يأتي علي ليلة أو ثلاث، عندي منه دينار إلا أرصده لدين، إلا أن أقول به في عباد الله هكذا وهكذا وهكذا وأرانا بيده، ثم قال: يا أبا ذر قلت: لبيك وسعديك يا رسول الل، قال: الأكثرون هم الأقلون… الحديث.
Bukhari narrated it in the Book of Seeking Permission (6268), and Muslim narrated it in the Book of Charities (94:32), both through Amash, from Zayd bin Wahb, from Abu Dharr, who related it. The wording given here is that of Bukhari, and it is mentioned in full in the Book of Charities.