Muwatta Imam Malik Book of Hudud, Hadith 28
Yahya related to me from Malik from Ibn Shihab from Safwan ibn Abdullah ibn Safwan that it was said to Safwan ibn Umayya, "Whoever does not do hijra is ruined." So Safwan ibn Umayya went to Madina and slept in the mosque with his cloak as a pillow. A thief came and took his cloak and Safwan grabbed hold of the thief and brought him to the Messenger of Allah, may Allah bless him and grant him peace. The Messenger of Allah ﷺ said to him, "Did you steal this cloak?" He said, "Yes." So the Messenger of Allah ﷺ ordered that his hand be cut off. Safwan said to him, "I did not intend this. It is his as sadaqa." The Messenger of Allah ﷺ said, "Why didn't you do it before bringing him to me?"
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنِ ابْنِ شِهَابٍ، عَنْ صَفْوَانَ بْنِ عَبْدِ اللَّهِ بْنِ صَفْوَانَ، أَنَّ صَفْوَانَ بْنَ أُمَيَّةَ، قِيلَ لَهُ إِنَّهُ مَنْ لَمْ يُهَاجِرْ هَلَكَ . فَقَدِمَ صَفْوَانُ بْنُ أُمَيَّةَ الْمَدِينَةَ فَنَامَ فِي الْمَسْجِدِ وَتَوَسَّدَ رِدَاءَهُ فَجَاءَ سَارِقٌ فَأَخَذَ رِدَاءَهُ فَأَخَذَ صَفْوَانُ السَّارِقَ فَجَاءَ بِهِ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ لَهُ رَسُولُ اللَّهِ ﷺ " أَسَرَقْتَ رِدَاءَ هَذَا " . قَالَ نَعَمْ . فَأَمَرَ بِهِ رَسُولُ اللَّهِ ﷺ أَنْ تُقْطَعَ يَدُهُ فَقَالَ لَهُ صَفْوَانُ إِنِّي لَمْ أُرِدْ هَذَا يَا رَسُولَ اللَّهِ هُوَ عَلَيْهِ صَدَقَةٌ . فَقَالَ رَسُولُ اللَّهِ ﷺ " فَهَلاَّ قَبْلَ أَنْ تَأْتِيَنِي بِهِ " .