Al-An'aam • BN-TAFSEER-IBN-E-KASEER
﴿ فَلَمَّا رَءَا ٱلْقَمَرَ بَازِغًۭا قَالَ هَٰذَا رَبِّى ۖ فَلَمَّآ أَفَلَ قَالَ لَئِن لَّمْ يَهْدِنِى رَبِّى لَأَكُونَنَّ مِنَ ٱلْقَوْمِ ٱلضَّآلِّينَ ﴾
“Then, when he beheld the moon rising, he said, "This is my Sustainer!"-but when it went down, he said, "Indeed, if my Sustainer guide me not. I will most certainly become one of the people who go astray!"”
Please check ayah 6:79 for complete tafsir.