Sayyiduna Anas bin Malik (may Allah be pleased with him) narrates: We were with the Prophet (peace and blessings be upon him) when a man came to him and said: "O Messenger of Allah! So-and-so has passed away." The Prophet (peace and blessings be upon him) said: "Was he not with us just a little while ago?" The people said: "Yes indeed!" The Prophet (peace and blessings be upon him) said: "Subhan Allah! This seems like a seizure in wrath. The deprived one is he who remains deprived of making a will." (Allamah al-Haythami says:) I say: Ibn Majah recorded this part of it: "The deprived one is he who remains deprived of a will."
Abu Ya'la recorded it, and its chain is hasan (good).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الوصايا / 7080