At-Tawbah 9:39
إِلَّا تَنفِرُوا۟ يُعَذِّبْكُمْ عَذَابًا أَلِيمًا وَيَسْتَبْدِلْ قَوْمًا غَيْرَكُمْ وَلَا تَضُرُّوهُ شَيْـًٔا ۗ وَٱللَّهُ عَلَىٰ كُلِّ شَىْءٍ قَدِيرٌ
Illa tanfiroo yuAAaththibkumAAathaban aleeman wayastabdil qawman ghayrakum walatadurroohu shay-an wallahu AAalakulli shay-in qadeer
If you do not go forth, He will punish you with a painful punishment and will replace you with another people, and you will not harm Him at all. And Allāh is over all things competent.
If you do not march forth (in the way of Allah), He will chastise you with a painful punishment and will replace you with another nation, and you can do Him no harm at all. Allah is powerful to do anything.