Abdullah bin Abbas reported,

A man from the tribe of Banu Sahm set out on a journey with Tamim Dari and Adi bin Bada. The man from Banu Sahm died in a land where no Muslim was present. When the two returned with his estate, the family found that a silver cup decorated with gold was missing.The Messenger of Allah ﷺ had the two men swear an oath. Later, the cup turned up in Mecca, and the people there said, "We bought it from Tamim and Adi."Then two relatives of the deceased stood up and swore, "Our testimony is more truthful than their testimony, and the cup indeed belongs to our kinsman."The narrator said, "It was concerning them that this verse was revealed, 'You who believe, when death approaches one of you, let testimony be taken among you'" [Maidah 5:106].

Azami 12301

Sahih

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

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

الأعظمي 12301صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And when they meet those who believe, they say, 'We believe,' but when they are alone with their devils, they say, 'Indeed, we are with you; we were only mocking'"
Numbering
Jami al-Kamil 12301 (2nd edition)
Azami 12301