(Al-An'aam) 6 : 76
فَلَمَّا جَنَّ عَلَيْهِ اللَّيْلُ رَأَىٰ كَوْكَبًا ۖ قَالَ هَٰذَا رَبِّي ۖ فَلَمَّا أَفَلَ قَالَ لَا أُحِبُّ الْآفِلِينَ

Then, when the night overshadowed him with darkness, he saw a star; he said: "This is my Lord"; when it was set, he said: "I do not love things that set".

The people of Ibrahim were not only serving and worshipping the idols but also were serving, worshipping, and fearing non-living things like the sun, the moon, stars, and various living things. When the night was overshaded by the darkness and a star was visible clearly, he invited the attention of the people to the star; and when it set, he said that he doesn’t like to consider those things as his Lord.