Abu Hurairah reported,

The Prophet ﷺ said, "Among those who lived before you was a man who bought a piece of land and found in it a jar of gold. He said to the seller, 'I bought the land from you, but I did not buy the gold from you.'The seller replied, 'I sold you the land with whatever it contained.'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 Jariya.'He said, 'Then marry the son to the Jariya, let them spend from this gold on themselves, and let them give some in charity.'"

Ibn Majah 2511

Hasan

حدثنا أحمد بن ثابت الجحدري حدثنا يعقوب بن إسحق الحضرمي حدثنا سليم بن حيان سمعت أبي يحدث

عن أبي هريرة

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

ابن ماجه 2511حسن
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Lost property
Chapter
One who finds buried treasure
Numbering
Darussalam 2511
Ibn Majah 2511