It was narrated that 'Ali said:
"The Messenger of Allah ﷺ gave me two slaves who were brothers, and I sold one of them. He said: 'What happened with the two slaves?' I said: 'I sold one of them.' He said: 'Take him back."'
حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، حَدَّثَنَا عَفَّانُ، عَنْ حَمَّادٍ، أَنْبَأَنَا الْحَجَّاجُ، عَنِ الْحَكَمِ، عَنْ مَيْمُونِ بْنِ أَبِي شَبِيبٍ، عَنْ عَلِيٍّ، قَالَ وَهَبَ لِي رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ غُلاَمَيْنِ أَخَوَيْنِ فَبِعْتُ أَحَدَهُمَا فَقَالَ " مَا فَعَلَ الْغُلاَمَانِ " . قُلْتُ بِعْتُ أَحَدَهُمَا قَالَ " رُدَّهُ " .
• Sunan Ibn Majah, Vol. 3, Book of Business Transactions, Hadith 2249
• Sunan Ibn Majah, Book of Business Transactions, Hadith 2249