>>726250
As others said, it's in the Quran. However, the source is a Jewish Midrash named Genesis Rabbah that was written sometime in the 3rd-5th century. Basically, Midrash is Jewish commentary on a verse in the Bible, using a mix of other Bible verses, Jewish oral tradition, Jewish law, and a bunch of other stuff. Here's the passage in the Genesis Rabbah, which is commentary on Genesis 11:28, "And Haran died before his father Terah in the land of his nativity, in Ur of the Chaldees."
>Terah took Abraham and gave him over to Nimrod. Nimrod said to him: Let us worship the fire! Abraham said to him: Should we not then worship water, which extinguishes fire? Nimrod said to him: Then, let us worship the water! Abraham said to him: Should we not then worship the clouds, which carry the water? Nimrod said to him: Then, let us worship the cloud! Abraham said to him: If so, Should we not then worship the wind, which scatters the clouds? Nimrod said to him: Then, let us worship the wind! Abraham said to him: Should we not then worship the human, who withstands the wind? Nimrod said to him: You are merely piling words; we should bow to none other than the fire. I shall therefore cast you in it, and let your God to whom you bow come and save you from it!
>Haran (Abraham’s brother) was standing there. He said to himself: what shall I do? If Abraham wins, I shall say: “I am of Abraham’s (followers),” if Nimrod wins I shall say, “I am of Nimrod’s (followers).” When Abraham went into the furnace and survived, Haran was asked: “Whose follower are you?” and he answered: “I am Abraham’s!” So, they took him and threw him into the furnace, and his innards were burned and he died and predeceased Terah, his father. This is the meaning of the verse (Gen 11:28), “And Haran died in the lifetime of his father Terah.”
The Quran copies this story, but rewrites it "We" in this story is Allah
>"And We had certainly given Abraham his sound judgement before, and We were of him well-knowing when he said to his father and his people, 'What are these statues to which you are devoted?' They said, 'We found our fathers worshippers of them.' He said, 'You were certainly, you and your fathers, in manifest error.' They said, 'Have you come to us with truth, or are you of those who jest?' He said, 'No, rather, your Lord is the Lord of the heavens and the earth who created them, and I, to that, am of those who testify. And by Allah, I will surely plan against your idols after you have turned and gone away.' So he made them into fragments, except a large one among them, that they might return to it and question. They said, 'Who has done this to our gods? Indeed, he is of the wrongdoers.' They said, 'We heard a young man mention them who is called Abraham.' They said, 'Then bring him before the eyes of the people that they may testify.' They said, 'Have you done this to our gods, O Abraham?' He said, 'Rather, this - the largest of them - did it, so ask them, if they should be able to speak.' So they returned to blaming themselves and said to each other, 'Indeed, you are the wrongdoers.' Then they reversed themselves, saying, 'You have already known that these do not speak!' He said, 'Then do you worship instead of Allah that which does not benefit you at all or harm you? Uff to you and to what you worship instead of Allah. Then will you not use reason?' They said, 'Burn him and support your gods - if you are to act.' Allah said, 'O fire, be coolness and safety upon Abraham.' And they intended for him harm, but We made them the greatest losers. And We delivered him and Lot to the land which We had blessed for the worlds," (Surah 21:51-71)