Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:3:158

And whether you die or are killed, unto Allah you will be gathered.  

And if (wa-la-in, the lām is for oaths) you die (˹read˺ in both ways ˹muttum or mittum˺, or are slain, in the ˹holy˺ struggle or otherwise, it is to God, and to none other than Him that, you shall be mustered, in the Hereafter, and He will requite you.
القرآن:٣:١٥٨

وَلَئِنْ مُتُّمْ أَوْ قُتِلْتُمْ لَإِلَى اللَّهِ تُحْشَرُونَ  

{ولئن} لام قسم {مُتُّمْ} بالوجهين {أو قُتلتم} في الجهاد وغيره {لإلى الله} لا إلى غيره {تُحشرون} في الآخرة فيجازيكم.