I was sleeping in the mosque on a cloak of mine worth thirty dirhams when a man came and snatched it from me. The man was caught and brought before the Messenger of Allah ﷺ, who ordered that his hand be cut off.I came to him and said, "Are you going to cut off his hand over thirty dirhams? I will sell it to him and let him pay the price later."He replied, "Why did you not do this before bringing him to me?"
حدثنا محمد بن يحيى بن فارس حدثنا عمرو بن حماد بن طلحة حدثنا أسباط عن سماك بن حرب عن حميد ابن أخت صفوان
كنت نائما في المسجد علي خميصة لي ثمن ثلاثين درهما فجاء رجل فاختلسها مني فأخذ الرجل فأتي به رسول الله ﷺ فأمر به ليقطع قال فأتيته فقلت أتقطعه من أجل ثلاثين درهما أنا أبيعه وأنسئه ثمنها قال فهلا كان هذا قبل أن تأتيني به
Sourcing, [its isnad is hasan] Nasai narrated it in the chapter on cutting off the hand of the thief, section on what constitutes safekeeping and what does not, h: 4887, from the hadith of Amr bin Hammad, and Ibn Jarud graded it sahih, h: 828. Ibn Majah also narrated it, h: 2595, through another route from Safwan bin Umaya.