It is narrated from Sayyiduna Ali bin Abi Talib (may Allah be pleased with him) that he said: "The Messenger of Allah (peace and blessings be upon him) ordered me to sell two slave boys who were brothers, so I separated them (by selling them separately). Then I mentioned that to the Prophet (peace and blessings be upon him), and he said: 'Go after them and bring them back, and do not sell them except together.'"
Imam Ahmad (may Allah have mercy on him) also narrated it from Abd al-Wahhab (may Allah have mercy on him), from Shu'bah (may Allah have mercy on him), through a man, from al-Hakam bin Utaybah (may Allah have mercy on him).
And Yahya bin Abi Talib (may Allah have mercy on him) has also narrated it from Abd al-Wahhab (may Allah have mercy on him), from Shu'bah (may Allah have mercy on him), from al-Hakam bin Utaybah (may Allah have mercy on him).
Related hadith on this topic