I heard the Messenger of Allah ﷺ say, "Whoever buys date palms after they have been pollinated, their fruit belongs to the one who sold them, unless the buyer stipulates otherwise. And whoever buys a slave, his property belongs to the one who sold him, unless the buyer stipulates otherwise."
حدثنا يحيى بن يحيى ومحمد بن رمح قالا أخبرنا الليث ح و حدثنا قتيبة بن سعيد حدثنا ليث عن ابن شهاب عن سالم بن عبد الله بن عمر
سمعت رسول الله ﷺ يقول من ابتاع نخلا بعد أن تؤبر فثمرتها للذي باعها إلا أن يشترط المبتاع ومن ابتاع عبدا فماله للذي باعه إلا أن يشترط المبتاع
Both of them (Bukhari and Muslim) reported the hadith of Zuhri, from Salim, from his father, from the Prophet, peace and blessings be upon him and his family, "Whoever sells a slave who has wealth."Nafi contradicted him, narrating it from Abdullah bin Umar, from Umar.Nasai said, "Salim is greater in my heart, but the correct view is that of Nafi."
Hafiz said in Fath al-Bari, volume 4, page 402, printed edition, "There is disagreement regarding Nafi and Salim as to whether the raising to the Prophet applies to anything besides the palm trees. Zuhri narrated it from Salim from his father as a marfu report covering both the story of the palm trees and the story of the slave together. This is how the memorizers of hadith transmitted it from Zuhri. Sufyan bin Husayn differed from them, adding in it that Ibn Umar narrated from Umar, making all the reports marfu. Nasai transmitted this."Hafiz also said, in volume 5, page 52, after some discussion, "I say, Tirmidhi transmitted in his Jami from Bukhari that he graded both narrations sahih, but transmitted from him in his Ilal that he preferred the narration of Salim. All of this has already been explained clearly in the Book of Sales."Hafiz said in the introduction to Fath al-Bari, after mentioning the statement of Daraqutni about the two hadiths with their two chains, "So he, meaning Bukhari, transmitted it in both forms, and his purpose in doing so was to use as evidence the story of the pollinated palm trees, which is marfu without any disagreement, as shown by the fact that he included it in the chapters on sharecropping. As for the story of the slave, he transmitted it only incidentally, and he made clear the disagreement that exists regarding it, so there is no objection to be raised against him. And Allah knows best." End of quote.