Surah Al-An'am 6:78
فَلَمَّا رَءَا ٱلشَّمْسَ بَازِغَةً قَالَ هَـٰذَا رَبِّى هَـٰذَآ أَكْبَرُ ۖ فَلَمَّآ أَفَلَتْ قَالَ يَـٰقَوْمِ إِنِّى بَرِىٓءٌ مِّمَّا تُشْرِكُونَ
And when he saw the sun rising, he said, "This is my lord; this is greater." But when it set, he said, "O my people, indeed I am free from what you associate with Allāh.
Translation: Saheeh International
Tafsir
And when he saw the sun rising he said ‘This is my Lord; this is greater!’ than the star and the moon the masculine demonstrative pronoun hādhā ‘this’ is used for the feminine shams ‘sun’ because the predicate rabbī ‘my Lord’ is masculine. …
Excerpt from Tafsir al-Jalalayn, commentary on 6:78, via Quran.com. The reader has the full commentary and 9 more tafsirs.