It was narrated from Ibn 'Umar that the Prophet (ﷺ) said:
"The Muslim man has no right to spend two nights, if he has something for which will should be made, without having a written will with him." (DE)
English reference (DE): Vol. 3, Book 22, Hadith 2702 (DE)
Arabic reference (DE): Book 22, Hadith 2806 (DE)