كتاب المقدمات
The Book of Miscellany
(65)
Chapter: Remembrance of Death and Restraint of Wishes
(65)
- باب ذكر الموت وقصر الأمل
Riyad as-Salihin 574
'Abdullah bin 'Umar (May Allah be pleased with them) reported:
Messenger of Allah (ﷺ) said, "It is the duty of a Muslim who has something which is to be given as a bequest not to have it for two nights without executing a written will."

[Al-Bukhari and Muslim].

In the narration of Muslim it is narrated as 'three nights'. Ibn 'Umar (May Allah be pleased with them) said: Since I heard the Messenger of Allah say this, I have never spent a night without having my will with me.

وعنه أن رسول الله صلى الله عليه وسلم قال‏:‏ “ ما حق امرئ مسلم ، له شئ يوصي فيه ، يبيت ليلتين إلا ووصيته مكتوبة عنده” ‏(‏‏(‏متفق عليه‏)‏‏)‏ هذا لفظ البخاري‏.‏
وفى رواية لمسلم” يبيت ثلاث ليال‏:‏ قال ابن عمر‏:‏ ما مرت على ليلة منذ سمعت رسول الله صلى الله عليه وسلم قال ذلك إلا وعندي وصيتي‏.‏
Reference : Riyad as-Salihin 574
In-book reference : Introduction, Hadith 574