Worshipping Allah is the reason behind the creation of the Heavens and the Earth, the angels and human beings, the night and the day, as-Sirat and al-Meezaan, Paradise and Hell. The whole universe was not created in jest:
“We created not the heavens and the earth and all that is between thetwo, in play.” [Surah Al-Anbiyaa (21), Ayah 16.]
Nor were human beings and the jinn created in vain:
“Did you then think that We had created you without purpose and thatyou would not be brought back to Us [for account]? Exalted then be Allah,the True King. There is no god but He, the Lord of the Glorious Throne.”[Surah Al-Mu’minoon (23), Ayat 115-116.]
They were not created without a reason and purpose:
“I have only created the jinn and the men but that they may worship Me.”[Surah Az-Zariyat (51), Ayah 56.]
The only purpose for which they were created therefore is to worship Allah alone.
They were created to carry out their duty towards Allah. This duty was outlinedby the Prophet when he called Mu’adh bin Jabal three times, asking him, “Do youknow Allah’s right upon His Servants?” Mu’adh replied, “Allah and His Messengerknow best.” The Prophet then said, “Allah’s right upon His servants is that theyshould worship Him alone and associate none with Him in worship.”43
This is the duty the servants must carry out towards Allah, mainly to worshipHim with total submission, humility, love, reliance, piety, good conduct and fear,turning unto Him.