The Stories - 28:46 Nor were you on the slope of Tur when We called out (to Moses). But (We inform you) as a mercy from your Lord that you may warn a people to whom no warner came before you, that they may take heed.
For a long time before Prophet Muhammad, the people of Mecca were not given a book:
The Cattle/6:155 And this is a blessed Book which We have sent down. So you should follow it and act righteously so that mercy may be shown to you.
The Cattle/6:156 "So do not say, "Two groups before us were given the Book, but we were ignorant of their teachings"."

The Table Spread/5:19 "People of the Book! Our apostle has come to you after a period of gap between the apostles, and he is telling you the truth so that you may not say: "There has not come to us a bearer of glad tidings and a warner". Behold, a bearer of glad tidings and a warner has come to you. Allah is the Almighty."

The Stories/28:46 Nor were you on the slope of Tur when We called out (to Moses). But (We inform you) as a mercy from your Lord that you may warn a people to whom no warner came before you, that they may take heed.

Yaseen/36:5 This is a revelation sent down by the Most High and Most Merciful.
Yaseen/36:6 That you may warn a people who have remained totally ignorant because their forefathers were not warned.

The Ornaments of Gold/43:5 Shall We stop conveying the Message to you because you are a transgressing people?

Sheva/34:44 We had not given them a Book to study, nor had We sent them a warner before you.

The Believers/23:68 Have they not examined the Word, or has something come to them which did not come to their ancestors of the past?

The Cow/2:198 It is permissible for you to seek the favor of your Lord (by trading in the Hajj region). When you leave Arafat, remember Allah in the Holy Place. Remember Him because He has guided you; before that you were astray.

The Congregation - Friday/62:2 He it is Who has sent a Messenger from among the Ummah, one of their own, who recites to them His verses, purifies them and teaches them the Book and wisdom. Before that they were in manifest error.