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:22:58

And those who emigrated for the cause of Allah and then were killed or died - Allah will surely provide for them a good provision. And indeed, it is Allah who is the best of providers.  

And those who emigrated in the way of God, that is, in obedience to Him, from ˹emigrating from˺ Mecca to Medina, and then were slain, or died, God shall provide them with a good provision, namely, the provision of Paradise. Truly God is the best of providers, the most excellent of givers.
القرآن:٢٢:٥٨

وَالَّذِينَ هَاجَرُوا فِي سَبِيلِ اللَّهِ ثُمَّ قُتِلُوا أَوْ مَاتُوا لَيَرْزُقَنَّهُمُ اللَّهُ رِزْقًا حَسَنًا ۚ وَإِنَّ اللَّهَ لَهُوَ خَيْرُ الرَّازِقِينَ  

{والذين هاجروا في سبيل الله} أي طاعته من مكة إلى المدينة {ثم قُتلوا أو ماتوا ليرزقنهم الله رزقا حسنا} هو رزق الجنة {وإن الله لهو خير الرازقين} أفضل المعطين