Sunan Ibn Majah, Volume 3, Book 12, Hadith 2249 (DarusSalam) ⓘ
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."'
حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى، حَدَّثَنَا عَفَّانُ، عَنْ حَمَّادٍ، أَنْبَأَنَا الْحَجَّاجُ، عَنِ الْحَكَمِ، عَنْ مَيْمُونِ بْنِ أَبِي شَبِيبٍ، عَنْ عَلِيٍّ، قَالَ وَهَبَ لِي رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ غُلاَمَيْنِ أَخَوَيْنِ فَبِعْتُ أَحَدَهُمَا فَقَالَ " مَا فَعَلَ الْغُلاَمَانِ " . قُلْتُ بِعْتُ أَحَدَهُمَا قَالَ " رُدَّهُ " .
also referenced under: Hadith 2249 (Reference) & Book 12, Hadith 2334 (In-Book)