Wa-ithi ibtala ibraheemarabbuhu bikalimatin faatammahunna qala innee jaAAilukalinnasi imaman qala wamin thurriyyateeqala la yanalu AAahdee aththalimeen
And [mention, O Muḥammad], when Abraham was tried by his Lord with words [i.e., commands] and he fulfilled them. [Allāh] said, "Indeed, I will make you a leader for the people." [Abraham] said, "And of my descendants?" [Allāh] said, "My covenant does not include the wrongdoers."
When his Lord tried Ibrahim with words and he fulfilled them. Every test is also a chance.