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:57:10

And why do you not spend in the cause of Allah while to Allah belongs the heritage of the heavens and the earth? Not equal among you are those who spent before the conquest ˹of Makkah˺ and fought ˹and those who did so after it˺. Those are greater in degree than they who spent afterwards and fought. But to all Allah has promised the best ˹reward˺. And Allah, with what you do, is Acquainted.  

And why should you, after having embraced faith, not (allā: the nūn of an ˹an-lā˺ has been assimilated here with the lām of lā) expend in the way of God when to God belongs the heritage of the heavens and the earth, with all that they comprise, so that He will ˹eventually˺ receive all your wealth but without the reward for having expended ˹of it for His cause˺, as opposed to if you had expended and had hence been rewarded. Not equal ˹to the rest of you˺ are those of you who expended and fought before the victory, at Mecca. Such are greater in rank than those who expended and fought afterwards. Yet to each, of the two groups (a variant reading ˹for wa-kullan, ‘yet to each’˺ has nominative wa-kullun as a subject) God has promised the best reward, Paradise. And God is Aware of what you do, and will requite you for it ˹accordingly˺.
القرآن:٥٧:١٠

وَمَا لَكُمْ أَلَّا تُنْفِقُوا فِي سَبِيلِ اللَّهِ وَلِلَّهِ مِيرَاثُ السَّمَاوَاتِ وَالْأَرْضِ ۚ لَا يَسْتَوِي مِنْكُمْ مَنْ أَنْفَقَ مِنْ قَبْلِ الْفَتْحِ وَقَاتَلَ ۚ أُولَٰئِكَ أَعْظَمُ دَرَجَةً مِنَ الَّذِينَ أَنْفَقُوا مِنْ بَعْدُ وَقَاتَلُوا ۚ وَكُلًّا وَعَدَ اللَّهُ الْحُسْنَىٰ ۚ وَاللَّهُ بِمَا تَعْمَلُونَ خَبِيرٌ  

{ومالكم} بعد إيمانكم {ألا} فيه إدغام نون أن في لام لا {تنفقوا في سبيل الله ولله ميراث السماوات والأرض} بما فيهما فتصل إليه أموالكم من غير أجر الإنفاق بخلاف ما لو أنفقتم فتؤجرون {لا يستوي منكم من أنفق من قبل الفتح} لمكة {وقاتل أولئك أعظم درجة من الذين أنفقوا من بعد وقاتلوا وكلا} من الفريقين، وفي قراءة بالرفع مبتدأ {وعد الله الحسنى} الجنة {والله بما تعملون خبير} فيجازيكم به.