What is the purpose of creating the humans and the jinn?
Allah created the humans and jinn to order them to worship Him. Suratul-Dhariyat, Ayah 56 means, “Allah has created jinn and mankind, only to order them to worship Him.” The Prophet, sallallahu ^alayhi wa sallam, said, “The greatest right due to Allah from his slaves is for them to worship Him without associating partners to Him.” (Related by al-Bukhariyy and Muslim)