Why did Allah create us?
Assalamao Alaikum Wa Rahmatullah
Alhamdolilahi Rabbil ‘Alameen Wa al-Salato wa al-Salamu ‘Ala Sayyidina Muhammadin Wa ‘Ala Aalihi Ajma’een
Allah Almighty says
[Baqarah 2:21] O mankind! Worship your Lord, Who has created you and those before you, in the hope of attaining piety.
Also
Zariyat 51:56] And I created the jinns and men, only for them to worship Me.
The Prophet of Allah SallAllahu Alaihi Wa Sallam has said that Allah Almighty says, ‘I was a hidden treasure and was not known; I loved to be known, therefore I
created creation and made Myself known to them so that they came to know Me.’
[(Ibn ‘ArabÏ said in the Futuhat al-Makkiyya (3:399 Bab 198): “It came in the Hadith that is Sahih per unveiling (kashf) but unestablished (ghayr thabit) per transmission from the Messenger of Allah from his Lord that He (Allah) said something in the meaning of this۔]