Surah An-Nazi'at 79:25
فَأَخَذَهُ ٱللَّهُ نَكَالَ ٱلْـَٔاخِرَةِ وَٱلْأُولَىٰٓ
So Allāh seized him in exemplary punishment for the last and the first [transgression]..
Translation: Saheeh International
Tafsir
So God seized him He destroyed him by drowning him as punishment for the latter that is to say these last words of his and for the former that is to say his saying previously ‘I do not know of any god for you other than me’ Q. 2838 — and between the two claims made by Pharaoh was an interval of forty years.
Excerpt from Tafsir al-Jalalayn, commentary on 79:25, via Quran.com. The reader has the full commentary and 9 more tafsirs.