"{ And [mention, O Muhammad], when Abraham was tried by his Lord with words..."

{ And [mention, O Muhammad], when Abraham was tried by his Lord with words [i.e., commands] and he fulfilled them. [Allah] said, "Indeed, I will make you a leader for the people." [Abraham] said, "And of my descendants?" [Allah] said, "My covenant does not include the wrongdoers." } Quran ( 2 : 124 )
https://noorinternational.net/articles/Abraham