the Messenger of Allah (ﷺ) said: "Whoever sells a palm tree that has been pollinated, its fruits belong to the seller, unless the purchaser stipulated a condition. And whoever buys a slave who has wealth, his wealth belongs to the seller, unless the purchaser stipulated a condition."
Sunan Ibn Majah Book 12, Hadith 75