Ibn Umar (Allah be pleased with them) reported Allah's Messenger (ﷺ) as saying
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 having his will written down regarding it.
This hadith has been narrated on the authority of 'Ubaidullah with the same chain of transmitters. but with a slight variation of words.
A hadith like this have been narrated on the authority of Nafi', who based his narrations of the words of Ibn 'Umar but with a slight variation of words.
Salim reported on the authority of his father ('Abdullah b. Umar) that he (his father) had heard Allah's Messenger (ﷺ) as saying
It is not proper for a Muslim who has got something to bequeathe to spend even three nights without having his will written down with him regarding it. 'Abdullah b. 'Umar (Allah be pleased with them) said: Ever since I heard Allah's Messenger (ﷺ) say this I have not spent a night without having my will (written) along with me.
This hadith has been narrated on the authority of Zuhri with the same chain of transmitters.