O you who have believed, testimony [should be taken] among you when death approaches one of you at the time of bequest - [that of] two just men from among you or two others from outside if you are traveling through the land and the disaster of death should strike you. Detain them after the prayer and let them both swear by Allāh if you doubt [their testimony, saying], "We will not exchange it [i.e., our oath] for a price [i.e., worldly gain], even if he should be a near relative, and we will not withhold the testimony of [i.e., ordained by] Allāh. Indeed, we would then be of the sinful."
O you who faith in Allah, follow His Messenger and practise His laws, when death approaches any of you, with the appearance its signs, then call to witness the bequest two upright Muslim men, or two men from the disbelievers (if the need arises due to there being no Muslims; for example, if you are travelling at that time). If there is any doubt regarding their testimony, keep them back after one of the prayers and let them both take an oath in Allah’s name saying, ‘We will not sell our share from Allah for any amount, such as by preferring a relative. Also, we will not conceal any testimony for Allah that is with us’. Tell them that if they are not truthful, they will be sinners who go against Allah.