But We produced [many] generations [after Moses], and prolonged was their duration. And you were not a resident among the people of Madyan, reciting to them Our verses, but We were senders [of this message].
Allah points out the proof of the prophethood of Muhammad ﷺ, whereby he told others about matters of the past, and spoke about them as if he were hearing and seeing them for himself. But he was an illiterate man who could not read books, and he grew up among a people who knew nothing of such things. Similarly, Allah told him about Maryam and her story, as Allah said:
(You were not with them, when they cast lots with their pens as to which of them should be charged with the care of Maryam; nor were you with them when they disputed) (3:44), meaning, `you were not present then, but Allah has revealed this to you.' Similarly, Allah told him about Nuh and his people, and how He saved Nuh and drowned his people, then He said:
وَلَقَدْ آتَيْنَا مُوسَى الْكِتَابَ مِن بَعْدِ مَا أَهْلَكْنَا الْقُرُونَ الْأُولَىٰ بَصَائِرَ لِلنَّاسِ (And We gave Musa, after We destroyed the earlier generations, the Book having insights for people - 28:43). The words "earlier generations" refer to the people of Nuh, Hud, Salilh, and Lut (علیہم السلام) ، who were destroyed before the time of Sayyidna Musa (علیہ السلام) because of their denial of truth. بَصَائِرَ Basair is the plural of Basirah بَصِیرَہ whose literal meaning is sagacity, insight and discernment. Here it is purported for that light or refulgence which Allah Ta’ ala bestows in the hearts of people with which they find out the truth and discern the distinction between right and wrong. (Mazhari)
Moses’ mission was to bring about a godly revolution in the human individual. His aim was that man should develop fear of God. This was aimed at all individuals, including the individual who occupied the throne of the country. It is common for one who attains to power and authority to develop a false sense of pride. This was equally true of Pharaoh. Moses warned Pharaoh that if he conducted himself arrogantly, he would be seized upon by God. But Pharaoh refused to accept his advice. The result was that he was drowned.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.