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:8:42

˹Remember˺ when you were on the near side of the valley, and they were on the farther side, and the caravan was lower ˹in position˺ than you. If you had made an appointment ˹to meet˺, you would have missed the appointment. But ˹it was˺ so that Allah might accomplish a matter already destined - that those who perished ˹through disbelief˺ would perish upon evidence and those who lived ˹in faith˺ would live upon evidence; and indeed, Allah is Hearing and Knowing.  

When (idh substitutes for yawma, ‘the day’) you were on the nearer bank, the one nearer to Medina (read ‘udwa or ‘idwa, meaning ‘the side of a valley’), and they were on the yonder bank, the one further from it, and the cavalcade, the caravan, was, in a place, below you, the coastal side; and had you, and the ˹enemy˺ band, agreed to meet, for battle, you would have surely failed to keep meeting; but, He brought you together at a different time, that God might conclude a matter that was to be done, through His knowledge — namely, the victory of Islam and the obliteration of unbelief — He did this so, that he who perished might perish, might be a disbeliever ˹even˺, after a clear proof, that is, after a manifest proof has been established against him, namely, the triumph of the believers, despite their small number, over the larger ˹enemy˺ army; and that he who survived might live, might believe, after a clear proof; surely God is Hearing, Knowing.
القرآن:٨:٤٢

إِذْ أَنْتُمْ بِالْعُدْوَةِ الدُّنْيَا وَهُمْ بِالْعُدْوَةِ الْقُصْوَىٰ وَالرَّكْبُ أَسْفَلَ مِنْكُمْ ۚ وَلَوْ تَوَاعَدْتُمْ لَاخْتَلَفْتُمْ فِي الْمِيعَادِ ۙ وَلَٰكِنْ لِيَقْضِيَ اللَّهُ أَمْرًا كَانَ مَفْعُولًا لِيَهْلِكَ مَنْ هَلَكَ عَنْ بَيِّنَةٍ وَيَحْيَىٰ مَنْ حَيَّ عَنْ بَيِّنَةٍ ۗ وَإِنَّ اللَّهَ لَسَمِيعٌ عَلِيمٌ  

{إذ} بدل من يوم {أنتم} كائنون {بالعُدوة الدنيا} القربى من المدينة وهى بضم العين وكسرها جانب الوادي {وهم بالعدوة القصوى} البعدى منها {والركب} العير كائنون بمكان {أسفل منكم} مما يلي البحر {ولو تواعدتم} أنتم والنفير للقتال {لاختلفتم في الميعاد ولكن} جمعكم بغير ميعاد {ليقضى الله أمرا كان مفعولا} في علمه وهو نصر الإسلام وَمَحْقُ الكفر فعل ذلك {ليهلك} يكفر {من هلك عن بينةٍ} أي بعد حجة ظاهرة قامت عليه وهي نصر المؤمنين مع قلتهم على الجيش الكثير {ويحيى} يؤمن {من حيَّ عن بينة وإن الله لسميع عليم}.