It was narrated that ‘Ali (رضي الله عنه) said:
The Messenger of Allah (ﷺ) gave me two slaves who were brothers, and I sold one of them, The Messenger of Allah (ﷺ) said: `What happened to the two slaves?` I said: I have sold one of them. The Messenger of Allah (ﷺ) said: `Get him back.`