I heard the Messenger of Allah ﷺ say, "Whoever among you can be like the man with the measure of rice, let him be like him."They asked, "Who is the man with the measure of rice, Messenger of Allah?"He then mentioned the story of the cave, when the mountain collapsed upon them and each of them said, "Recall the best of your deeds."The third man said, "O Allah, You know that I hired a worker for a measure of rice. When evening came, I offered him his wages, but he refused to take them and left. So I invested it for him until I had accumulated cattle and herdsmen tending them. Then he came to me and said, 'Give me my wages.' I said, 'Go to those cattle and their herdsmen and take them.' So he went and drove them away."
حدثنا محمد بن العلاء حدثنا أبو أسامة حدثنا عمر بن حمزة أخبرنا
سمعت رسول الله ﷺ يقول من استطاع منكم أن يكون مثل صاحب فرق الأرز فليكن مثله قالوا ومن صاحب فرق الأرز يا رسول الله فذكر حديث الغار حين سقط عليهم الجبل فقال كل واحد منهم اذكروا أحسن عملكم قال وقال الثالث اللهم إنك تعلم أني استأجرت أجيرا بفرق أرز فلما أمسيت عرضت عليه حقه فأبى أن يأخذه وذهب فثمرته له حتى جمعت له بقرا ورعاءها فلقيني فقال أعطني حقي فقلت اذهب إلى تلك البقر ورعائها فخذها فذهب فاستاقها
[Its chain is daif]. Ahmad narrated it, 2/116, from the hadith of Umar bin Hamza through this route, and he is daif, being deemed daif by the majority. His hadith appears in Sahih Muslim, and the hadith of the cave is agreed upon, narrated by Bukhari, no. 2272, and Muslim, no. 2743, from the hadith of Salim from his father through this route.