Tested
Remember when you were on the near side of the valley, and they were on the far side, with the caravan below you. Had you planned for this encounter, you would not have arranged it, but Allah brought it to pass so that a matter already decreed could be fulfilled. So that those who perished would perish with clear proof, and those who lived would live with clear proof.
8:42When ye were on the near bank (of the valley) and they were on the yonder bank, and the caravan was below you (on the coast plain). And had ye trysted to meet one another ye surely would have failed to keep the tryst, but (it happened, as it did, without the forethought of either of you) that Allah might conclude a thing that must be done; that he who perished (on that day) might perish by a clear proof (of His Sovereignty) and he who survived might survive by a clear proof (of His Sovereignty). Lo! Allah in truth is Hearer, Knower.