Surah Maryam — Ayah 49 (19:49)
فَلَمَّا ٱعۡتَزَلَهُمۡ وَمَا يَعۡبُدُونَ مِن دُونِ ٱللَّهِ وَهَبۡنَا لَهُۥٓ إِسۡحَٰقَ وَيَعۡقُوبَۖ وَكُلّٗا جَعَلۡنَا نَبِيّٗا ٤٩
English translation (Saheeh International)
So when he had left them and those they worshipped other than Allāh, We gave him Isaac and Jacob, and each [of them] We made a prophet.
Brief commentary
So when he left them and their gods they used to worship besides Allah, I replaced for him his loss of family, and so I gave him his son Isaac and I gave him his grandson Jacob. And each one of them I made a prophet.