Sunan Abi Dawud, Book 24, Hadith 20 (Abu Dawud 3436)

Narrated Jabir ibn Abdullah:

The Prophet (ﷺ) said: If anyone buys a slave who possesses property, his property belongs to the seller unless the buyer makes a proviso.