‘Ali said:
God’s Messenger presented me with two youths who were brothers, and when I sold one of them God’s Messenger asked me, “What has happened to your young man, ‘Ali?” When I told him he said, “Get him back, get him back.”
Tirmidhi and Ibn Majah transmitted it.