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:30:4

Within three to nine years. To Allah belongs the command before and after. And that day the believers will rejoice  

in a few years (bid‘, ˹usually means˺ between three and nine or ten years). So the two armies met again seven years after this former encounter and the Byzantines defeated the Persians. To God belongs the command before and after, that is, before the defeat of the Byzantines and thereafter, that is to say, the Persian victory at first and the Byzantine victory later were ˹the result of˺ God’s command, in other words, His will, and on that day, the day when the Byzantines will be victorious, the believers shall rejoice
القرآن:٣٠:٤

فِي بِضْعِ سِنِينَ ۗ لِلَّهِ الْأَمْرُ مِنْ قَبْلُ وَمِنْ بَعْدُ ۚ وَيَوْمَئِذٍ يَفْرَحُ الْمُؤْمِنُونَ  

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