Quran 28:46 — History (Al-Qasas)
Nor were you on the slope of Mount Sinai when we called (Moses). But it is mercy from your Lord, (towards the people,) in order to warn people who received no warner before you, that they may take heed.
[28:45] But we established many generations, and, because of the length of time, (they deviated). Nor were you among the people of Midyan, reciting our revelations to them. But we did send messengers.
[28:47] Thus, they cannot say, when a disaster strikes them as a consequence of their own deeds, "Our Lord, had You sent a messenger to us, we would have followed Your revelations, and would have been believers."