BAYHAQI 12590:
from ʿAbdullāh b. ʿUmar —
[Machine] The Messenger of Allah ﷺ said, "It is not befitting for a Muslim to have something that he wishes to advise on and go to sleep for three nights without having his will written with him." Abdullah bin Umar (may Allah be pleased with him) said, "No night has passed since I heard the Messenger of Allah ﷺ say this, except that I have my will with me."
البيهقي ١٢٥٩٠:
عن عبد الله بن عمر —
أَنَّ رَسُولَ اللهِ ﷺ قَالَ مَا حَقُّ امْرِئٍ مُسْلِمٍ لَهُ شَيْءٌ يُوصِي فِيهِ يَبِيتُ ثَلَاثَ لَيَالٍ إِلَّا وَوَصِيَّتُهُ مَكْتُوبَةٌ عِنْدَهُ قَالَ عَبْدُ اللهِ بْنُ عُمَرَ مَا مَرَّتْ عَلَيَّ لَيْلَةٌ مُنْذُ سَمِعْتُ رَسُولَ اللهِ ﷺ قَالَ ذَلِكَ إِلَّا وَعِنْدِي وَصِيَّتِي
hadithunlocked.com