"When captives were brought to him, the Prophet (ﷺ) would give the members of one family together (to one person), not wanting to separate them."
Sunan Ibn Majah Book 12, Hadith 112