It is narrated from Sayyiduna Jabir (may Allah be pleased with them both) that he said: "I heard the Messenger of Allah (peace and blessings be upon him) three days before his (peace and blessings be upon him) death, while he (peace and blessings be upon him) was saying: 'None of you should die except while he has a good opinion of Allah, the Mighty and Majestic.'"
Hadith Referenceالمعجم الأوسط / باب الألف / 1590
Hadith Takhrij«أخرجه مسلم فى «صحيحه» برقم: 2877، وابن حبان فى «صحيحه» برقم: 636، 637، 638، وأبو داود فى «سننه» برقم: 3113، وابن ماجه فى «سننه» برقم: 4167، والبيهقي فى «السنن الكبرى» برقم: 6662، 6663، وأحمد فى «مسنده» برقم: 14341، 14610، 14705، 14756، 14804، 15430، والطيالسي فى «مسنده» برقم: 1888، وأبو يعلى فى «مسنده» برقم: 1907، 1942، 2053، 2290، وعبد بن حميد فى «مسنده» برقم: 1015، 1041»