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:14:47

So never think that Allah will fail in His promise to His messengers. Indeed, Allah is Exalted in Might and Owner of Retribution.  

So do not suppose that God will fail ˹to keep˺ His promise, of victory, to His messengers. Truly God is Mighty, Victor, nothing able to escape Him, Lord of Retribution, against those who disobey Him.
القرآن:١٤:٤٧

فَلَا تَحْسَبَنَّ اللَّهَ مُخْلِفَ وَعْدِهِ رُسُلَهُ ۗ إِنَّ اللَّهَ عَزِيزٌ ذُو انْتِقَامٍ  

{فلا تحسبنَّ الله مخلف وعده رسله} بالنصر {إن الله عزيز} غالب لا يعجزه شيء {ذو انتقام} ممن عصاه.