Dr. Mustafa Khattab, the Clear Quran - 37:112

Translation for 37:112

We ˹later˺ gave him good news of Isaac—a prophet, and one of the righteous.1

Foot notes

77253

 The birth of Isaac is announced after the story of sacrifice. So this is a proof that the son who was going to be sacrificed was Ishmael, not Isaac. This is also supported by 11:71, where Sarah is told that she would give birth to Isaac, who would (reach adulthood and) have a son by the name of Jacob.