Surah Al-An'am, ayah 76

6:76

فَلَمَّا جَنَّ عَلَيۡهِ ٱلَّيۡلُ رَءَا كَوۡكَبٗاۖ قَالَ هَٰذَا رَبِّيۖ فَلَمَّآ أَفَلَ قَالَ لَآ أُحِبُّ ٱلۡأٓفِلِينَ ٧٦

Falammā janna 'alayhil-laylu ra'ā kawkaban qāla hādhā rabbī falammā afala qāla lā uhibbul-āfilīn

So when the night covered him [with darkness], he saw a star. He said, "This is my lord."322 But when it set, he said, "I like not those that set [i.e., disappear]."

Footnotes

322 In verses 76-79, beginning from the people's own assertions, Abraham presents a picture of his dissatisfaction as the only logical conclusion one could reach, in order to show them the futility of their false objects of worship.