The king who disputed with Ibrahim was King Nimrod, son of Canaan, son of Kush, son of Sam, son of Noah, as Mujahid stated. It was also said that he was Nimrod, son of Falikh, son of `Abir, son of Shalikh, son of Arfakhshand, son of Sam, son of Noah. Mujahid said, "The kings who ruled the eastern and western parts of the world are four, two believers and two disbelievers. As for the two believing kings, they were Sulayman bin Dawud and Dhul-Qarnayn. As for the two disbelieving kings, they were Nimrod and Nebuchadnezzar.'' Allah knows best.
﴿ أَلَمۡ تَرَ ﴾
(Have you not looked) meaning, "With your heart, O Muhammad!''
﴿ إِلَى ٱلَّذِى حَآجَّ إِبۡرَٲهِـۧمَ فِى رَبِّهِۦۤ ﴾
(at him who disputed with Ibrahim about his Lord) meaning, about the existence of Allah. Nimrod denied the existence of a god other than himself, as he claimed, just as Fir`awn said later to his people,
﴿ مَا عَلِمۡتُ لَڪُم مِّنۡ إِلَـٰهٍ غَيۡرِى ﴾
(I know not that you have a god other than me))28:38(.
What made Nimrod commit this transgression, utter disbelief and arrant rebellion was his tyranny and the fact that he ruled for a long time. This is why the Ayah continued,
﴿ أَنۡ ءَاتَٮٰهُ ٱللَّهُ ٱلۡمُلۡكَ ﴾
(Because Allah had given him the kingdom.)
It appears that Nimrod asked Ibrahim to produce proof that Allah exists. Ibrahim replied,
﴿ رَبِّىَ ٱلَّذِى يُحۡىِۦ وَيُمِيتُ ﴾
(My Lord is He Who gives life and causes death) meaning, "The proof of Allah's existence is the creations that exist after they were nothing and perish after they had existed. This only proves the existence of the Creator, Who does what He wills, for these things could not have occurred on their own without a Creator who created them, and He is the Lord that I call to for worship, Alone without a partner.''
This is when Nimrod said,
﴿ أَنَا۟ أُحۡىِۦ وَأُمِيتُۖ ﴾
(I give life and cause death.)
Qatadah, Muhammad bin Ishaq and As-Suddi said that he meant, "Two men who deserved execution were to be brought before me, and I would command that one of them be killed, and he would be killed. I would command that the second man be pardoned, and he would be pardoned. This is how I bring life and death.'' However, it appears that since Nimrod did not deny the existence of a Creator, his statement did not mean what Qatadah said it meant. This explanation does not provide an answer to what Ibrahim said. Nimrod arrogantly and defiantly claimed that he was the creator and pretended that it was he who brings life and death. Later on, Fir`awn imitated him and announced,
﴿ مَا عَلِمۡتُ لَڪُم مِّنۡ إِلَـٰهٍ غَيۡرِى ﴾
(I know not that you have a god other than me))28: 38(.
This is why Ibrahim said to Nimrod,
﴿ فَإِنَّ ٱللَّهَ يَأۡتِى بِٱلشَّمۡسِ مِنَ ٱلۡمَشۡرِقِ فَأۡتِ بِہَا مِنَ ٱلۡمَغۡرِبِ ﴾
(Verily, Allah brings the sun from the east; then bring it you from the west.)
This Ayah means, "You claim that it is you who brings life and death. He who brings life and death controls the existence and creates whatever is in it, including controlling its planets and their movements. For instance, the sun rises everyday from the east. Therefore, if you were god, as you claimed, bringing life and death, then bring the sun from the west.'' Since the king was aware of his weakness, inadequacy and that he was not able to reply to Ibrahim's request, he was idle, silent and unable to comment. Therefore, the proof was established against him. Allah said,
﴿ وَٱللَّهُ لَا يَهۡدِى ٱلۡقَوۡمَ ٱلظَّـٰلِمِينَ ﴾
(And Allah guides not the people, who are wrongdoers) meaning, Allah deprives the unjust people of any valid proof or argument. Furthermore, their false proof and arguments are annulled by their Lord, and they have earned His anger and will suffer severe torment.
The meaning that we provided is better than the meaning that some philosophers offered, claiming that Ibrahim used the second argument because it was clearer than the first one. Rather, our explanation asserts that Ibrahim refuted both claims of Nimrod, all praise is due to Allah.
As-Suddi stated that the debate between Ibrahim and Nimrod occurred after Ibrahim was thrown in the fire, for Ibrahim did not meet the king before that day.
﴿ أَوۡ كَٱلَّذِى مَرَّ عَلَىٰ قَرۡيَةٍ۬ وَهِىَ خَاوِيَةٌ عَلَىٰ عُرُوشِهَا قَالَ أَنَّىٰ يُحۡىِۦ هَـٰذِهِ ٱللَّهُ بَعۡدَ مَوۡتِهَاۖ فَأَمَاتَهُ ٱللَّهُ مِاْئَةَ عَامٍ۬ ثُمَّ بَعَثَهُ ۥۖ قَالَ ڪَمۡ لَبِثۡتَۖ قَالَ لَبِثۡتُ يَوۡمًا أَوۡ بَعۡضَ يَوۡمٍ۬ۖ قَالَ بَل لَّبِثۡتَ مِاْئَةَ عَامٍ۬ فَٱنظُرۡ إِلَىٰ طَعَامِكَ وَشَرَابِكَ لَمۡ يَتَسَنَّهۡۖ وَٱنظُرۡ إِلَىٰ حِمَارِكَ وَلِنَجۡعَلَكَ ءَايَةً۬ لِّلنَّاسِۖ وَٱنظُرۡ إِلَى ٱلۡعِظَامِ ڪَيۡفَ نُنشِزُهَا ثُمَّ نَكۡسُوهَا لَحۡمً۬اۚ فَلَمَّا تَبَيَّنَ لَهُ ۥ قَالَ أَعۡلَمُ أَنَّ ٱللَّهَ عَلَىٰ ڪُلِّ شَىۡءٍ۬ قَدِيرٌ۬ ﴾
(259. Or like the one who passed by a town in ruin up to its roofs. He said: "How will Allah ever bring it to life after its death'' So Allah caused him to die for a hundred years, then raised him up (again). He said: "How long did you remain (dead)'' He (the man) said: "(Perhaps) I remained (dead) a day or part of a day.'' He said: "Nay, you have remained (dead) for a hundred years, look at your food and your drink, they show no change; and look at your donkey! And thus We have made of you a sign for the people. Look at the bones, how We bring them together and clothe them with flesh.'' When this was clearly shown to him, he said, "I know (now) that Allah is able to do all things.'')