´Narrated Ibn 'Abbas:` "A man from Banu Sahm went out with Tamim Ad-Dari and 'Adi bin Badda. The Sahmi man died in a land in which there were no Muslims. When they arrived with what he left behind, they searched for a bowl made of silver which was inlaid with gold. The Messenger of Allah (ﷺ) had the two of them take an oath. Then they found the bowl in Makkah, and the person said: 'We purchased it from Tamim and 'Adi.' So two men among the relatives of the Sahmi man stood to take an oath by Allah: 'Our testimony is more truthful than their testimony,' and that the bowl belonged to their companion." He said: "So it was about them that the following was revealed: O you who believe! (When death approaches any of you then) take the testimony (5:106)."
Hadith Referenceسنن ترمذي / كتاب تفسير القرآن عن رسول الله صلى الله عليه وسلم / 3060
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:صحيح, صحيح بخاري