بسم الله الرحمن الرحيم

Question: What is the reason for which Allaah created the creation?

Answer: Allaah (The Most High) said:

وَمَا خَلَقۡتُ ٱلۡجِنَّ وَٱلۡإِنسَ إِلَّا لِيَعۡبُدُونِ

And I (Allah) created not the jinns and humans except they should worship Me (Alone). [51:56]

Allaah (The Most High) said:

وَخَلَقَ ٱللَّهُ ٱلسَّمَـٰوَٲتِ وَٱلۡأَرۡضَ بِٱلۡحَقِّ وَلِتُجۡزَىٰ كُلُّ نَفۡسِۭ بِمَا ڪَسَبَتۡ وَهُمۡ لَا يُظۡلَمُونَ

‘’And Allah has created the heavens and the earth with truth, in order that each person may be recompensed what he has earned, and they will not be wronged.’’ [45:22]

Allaah (The Most High) said:

وَمَا خَلَقۡنَا ٱلسَّمَـٰوَٲتِ وَٱلۡأَرۡضَ وَمَا بَيۡنَہُمَا لَـٰعِبِينَ

مَا خَلَقۡنَـٰهُمَآ إِلَّا بِٱلۡحَقِّ وَلَـٰكِنَّ أَڪۡثَرَهُمۡ لَا يَعۡلَمُونَ

And We created not the heavens and the earth, and all that is between them, for mere play; We created them not except with truth (i.e. to examine and test those who are obedient and those who are disobedient and then reward the obedient ones and punish the disobedient ones), but most of them know not. [44:38-39]

[Source: 200 Questions and answers on Islamic Creed by Haafidh Hakami (rahimahullaah)]