Surah Al-Anfaal, Verse 42
Translation — Sahih International
[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.
Source
Kur'an-ı Kerim, Enfâl Suresi 8:42
https://kuran.diyanet.gov.tr/mushaf/kuran-meal-2/8-suresi-42-ayet