فَلَمَّا جَنَّ عَلَيْهِ ٱلَّيْلُ رَءَا كَوْكَبًا ۖ قَالَ هَـٰذَا رَبِّى ۖ فَلَمَّآ أَفَلَ قَالَ لَآ أُحِبُّ ٱلْـَٔافِلِينَ ﴿76﴾ فَلَمَّا رَءَا ٱلْقَمَرَ بَازِغًا قَالَ هَـٰذَا رَبِّى ۖ فَلَمَّآ أَفَلَ قَالَ لَئِن لَّمْ يَهْدِنِى رَبِّى لَأَكُونَنَّ مِنَ ٱلْقَوْمِ ٱلضَّآلِّينَ ﴿77﴾ فَلَمَّا رَءَا ٱلشَّمْسَ بَازِغَةً قَالَ هَـٰذَا رَبِّى هَـٰذَآ أَكْبَرُ ۖ فَلَمَّآ أَفَلَتْ قَالَ يَـٰقَوْمِ إِنِّى بَرِىٓءٌ مِّمَّا تُشْرِكُونَ ﴿78﴾ إِنِّى وَجَّهْتُ وَجْهِىَ لِلَّذِى فَطَرَ ٱلسَّمَـٰوَٰتِ وَٱلْأَرْضَ حَنِيفًا ۖ وَمَآ أَنَا۠ مِنَ ٱلْمُشْرِكِينَ ﴿79﴾
76 When the night grew dark upon him he beheld a star. He said: This is my Lord. But when it set, he said: I love not things that set. 77 And when he saw the moon uprising, he exclaimed: This is my Lord. But when it set, he said: Unless my Lord guide me, I surely shall become one of the folk who are astray. 78 And when he saw the sun uprising, he cried: This is my Lord! This is greater! And when it set he exclaimed: O my people! Lo! I am free from all that ye associate (with Him). 79 Lo! I have turned my face toward Him Who created the heavens and the earth, as one by nature upright, and I am not of the idolaters.
Al-An’am 6:76–79 on Quran.com · Pickthall’s translation
Surah al-An’am tells a short, striking scene. Night falls over Ibrahim and he sees a star. He says, This is my Lord. When it sets, he says, I do not love things that set (al-An’am 6:76). Then the moon rises and he says the same. When it sets, he says that unless his Lord guides him, he will be one of those who go astray (6:77). Then the sun comes up, far more magnificent than the other two, and he says, This is my Lord, this is greater. When the sun sets too, he turns to his people: I am free of everything you set up as partners with Allah (6:78).
Many people read this as the story of a man searching for God, trying out the sky one light at a time until he found the right answer. The scholars of theology rejected that reading. Ibrahim was not testing gods. He was making a case, and his people were the audience. The verse just before the scene points the same way. Allah says He showed Ibrahim the kingdom of the heavens and the earth so that he would be one of those who are certain (6:75).
The scholars put the argument in two ways. One group of theologians read it as a proof about what God cannot be. A star, the moon and the sun all have bodies, take up space and move from place to place. Those are not attributes of Allah. Ibn Taymiyyah read it more simply. Ibrahim was saying to his people: you think these things are so great that they deserve your worship, but look at them. They are here for part of the day and then they are gone. How can you worship something that disappears?
There is a further reason the “search” reading does not fit. The scholars note that Ibrahim made these observations as a child. If he had ever truly believed in any being other than Allah, he would not have been given the title the next verse carries: I have turned my face to the One who created the heavens and the earth, as a hanif (6:79). A hanif is someone who stays connected to the fitrah, the natural knowledge of Allah that every person is born with. The Prophet ﷺ said that every child is born on the fitrah (Sahih al-Bukhari 1385, Sahih Muslim 2658b).
So Ibrahim already knew there was a Lord behind the sun, the moon and the stars, a Lord who controls all of them. That is why he could stand in front of his people and say, without hesitation, that he was free of everything they worshipped besides Allah. You are telling me to worship these things, he was saying, and I want nothing to do with them.
That same knowledge sits in you. It can be buried under noise, habit and the things people around you treat as important, but it does not leave. When you look up at the sky, you are not being asked to work out from scratch whether there is a Lord. You are being asked to recognise Him in what He made. You can read more of Ibrahim’s life in the stories of the prophets, and see where this scene sits in the surah on the al-An’am mind map.