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." (ES)
English reference (ES): Vol. 3, Book 22, Hadith 2702 (ES)
Arabic reference (ES): Book 22, Hadith 2806 (ES)