﴿56﴾ وَمَا خَلَقْتُ الْجِنَّ وَالْإِنسَ إِلاّ لِيَعْبُدُونِ
attainment man is provided with knowledge the final goal of which is to be immersed in the ocean of Divine Mercy.
Thus, servants need to know the Divine Essence as the Source of all perfect qualities, adapt themselves with the same, and avail themselves of whose light such that sparks of the attributes of Divine Perfection and Majesty may sparkle in their souls, since perfection and closeness to God Almighty are not possible unless one embarks upon assumption of dominical traits and such assumption is subsidiary to acquisition of knowledge. In this vein, a tradition is narrated from Imam Husayn (AS), saying: “God did not create mankind except for acquisition of knowledge of Him and when they acquired the knowledge, they worship Him; whoever worships him is needless of serving other objects of worship.” According to a Divine Tradition: “I was a Secret Treasure, but I intended to be known. I created beings to be known.” The two traditions designate that the world of existence was created so that God Almighty might be known and such knowledge entails benefits for creatures rather than for Divine Needless Essence. It also reflects that Divine Emanation resembles His other Attributes bestowing Emanations to inferior creatures. It is in this light and Mujāhid and some other Qur'anic exegets interpret “they should worship” to ‘they should know,’ namely God Almighty did not create jinn and mankind except for their acquisition of knowledge of God Almighty and the Divine Tradition “I was a Secret Treasure” substantiates the interpretation in question, since it goes without saying that worshipping and glorification of God Almighty without knowledge entails no consequences and one who does not know the object of worship and glorification may not embark upon the latter.
 Tafsīr Sāfī, vol. 5, p. 75.
 Tafsīr Makhzan al-‘Irfān, p. 334.
Thus, the final purpose of creation of jinn and mankind is that they may acquire knowledge of Divine Essence of Unity. God Almighty created jinn and mankind with all His Most Beauteous and Majestic Attributes so that He may be known and their worship and glorification spring from acquisition of knowledge regarding all Divine Attributes, Most Beauteous Names, and Omnipotence.
The blessed Verses 57 and 58 are saying that one may not imagine that God Almighty is in need of the worship and deeds of jinn and mankind and thereby attain to perfection, since He expects neither provision nor food from creatures as He is the Needless Creator and all creatures are in need of Him, requiring the Absolute Provider to bestow continuity of existence and provision upon them. Allah is All-Mighty, Omnipotent, All-Dominating, and All-Subduing. All creatures are in need of His Grandeur and Lordship but He is Needless of others by His Essence.