Abu Hurairah reported,

From the Messenger of Allah ﷺ, he mentioned several hadiths, among them that the Messenger of Allah ﷺ said, "A man bought a piece of property from another man, and the buyer found in his newly purchased land a jar filled with gold.The buyer said to the seller, 'Take your gold from me. I bought the land from you, not the gold.'The seller replied, 'I sold you the land and whatever is in it.'So they took their dispute to another man, who asked them, 'Do you have any children?'One of them said, 'I have a son.'The other said, 'I have a daughter.'He said, 'Marry the boy to the Jariya, spend from this gold on yourselves, and give in charity from it.'"

Muslim 4497

Sahih

حدثنا محمد بن رافع حدثنا عبد الرزاق حدثنا معمر عن همام بن منبه قال هذا ما

حدثنا أبو هريرة

عن رسول الله ﷺ فذكر أحاديث منها وقال رسول الله ﷺ اشترى رجل من رجل عقارا له فوجد الرجل الذي اشترى العقار في عقاره جرة فيها ذهب فقال له الذي اشترى العقار خذ ذهبك مني إنما اشتريت منك الأرض ولم أبتع منك الذهب فقال الذي شرى الأرض إنما بعتك الأرض وما فيها قال فتحاكما إلى رجل فقال الذي تحاكما إليه ألكما ولد فقال أحدهما لي غلام وقال الآخر لي جارية قال أنكحوا الغلام الجارية وأنفقوا على أنفسكما منه وتصدقا

مسلم 4497صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Judgments
Chapter
Recommendation of the judge reconciling between the two disputants
Numbering
Darussalam 4497
Muslim 4497