He created man (Surah Ar-Rahman: 3)
In another verse it is said:
That is, I created the jinn and humans only to worship Me. [Surah Az-Zariyat: 56]
One more thing to note here is that it is not really surprising that Allah has made arrangements for teaching people. On the contrary, it would have been a wonderful thing if it had not been for him. This has been explained in different ways in different places of Quran. Somewhere it is said: "It is my duty to show the way."
Surah Al-Layl: 12]
Again it is said: “It is the duty of Allah to guide the straight path. The number of crooked paths is many ”[Surah An-Nahl: 9]
It is mentioned elsewhere, that Pharaon was surprised to hear the message of Prophet in the mouth of Mosa and asked: Who is your‘ Rabb ’who sends messengers to me? Mosa answered, "He is my Lord, Who guides every thing to a certain shape and form."
[Surah Ta Ha: 48-50]