Abdullah bin Abbas reported,

A man from the tribe of Banu Sahm set out on a journey with Tamim Dari and Adi bin Badda. The man from Banu Sahm died in a land where there were no Muslims. When the two of them returned with his estate, the family found that a silver bowl inlaid with gold was missing. The Messenger of Allah ﷺ had the two men swear an oath.Later the bowl turned up in Makkah, and those holding it said, "We bought it from Adi and Tamim."So two men from among the relatives of the Sahmi stood up and swore by Allah that their testimony was more valid than the testimony of the other two, and that the bowl belonged to their kinsman.The narrator said, and it was concerning them that this was revealed, "You who believe, when death approaches one of you, let two just men from among you bear witness at the time of the bequest, or two others from outside your community" [Maidah 5:106].

Azami 6769

Sahih

عن ابن عباس قال

خرج رجل من بني سهم مع تميم الداري وعدي بن بداء. فمات السهمي بأرض ليس بها مسلم. فلما قدما بتركته فقدوا جاما من فضة مخوصا بالذهب. فأحلفهما رسول الله ﷺ ثم وجدوا الجام بمكة، فقيل: اشتريناه من عدي وتميم. فقام رجلان من أولياء السهمي، فحلفا بالله: لشهادتنا أحق من شهادتهما. وإن الجام لصاحبهم قال: وفيهم نزلت {يأيها الذين ءامنوا شهدة بينكم إذا حضر أحدكم الموت حين الوصية أثنان ذوا عدل منكم أو ءاخران من غيركم} [المائدة: ١٠٦].

الأعظمي 6769صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Judgeship
Chapter
Testimonies
Section
Testimony of dhimmis regarding a Muslim's bequest during travel
Numbering
Jami al-Kamil 6769 (2nd edition)
Azami 6769