Surah Al-An'am 6:77
فَلَمَّا رَءَا ٱلْقَمَرَ بَازِغًا قَالَ هَـٰذَا رَبِّى ۖ فَلَمَّآ أَفَلَ قَالَ لَئِن لَّمْ يَهْدِنِى رَبِّى لَأَكُونَنَّ مِنَ ٱلْقَوْمِ ٱلضَّآلِّينَ
And when he saw the moon rising, he said, "This is my lord." But when it set, he said, "Unless my Lord guides me, I will surely be among the people gone astray."
Translation: Saheeh International
Tafsir
And when he saw the moon rising appearing he said to them ‘This is my Lord.’ But when it set he said ‘Unless my Lord guides me unless He establishes me within true guidance I shall surely become one of the folk who are astray’ — an intimation to his people that they are astray but still this had no effect on them.
Excerpt from Tafsir al-Jalalayn, commentary on 6:77, via Quran.com. The reader has the full commentary and 9 more tafsirs.