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 Allah if you doubt [ their testimony , saying ] , " We will not exchange our oath for a price , even if he should be a near relative , and we will not withhold the testimony of Allah .