
Islam teaches that one of God’s greatest attributes is ‘The All-Wise’; He does not create anything in vain, exalted be He! He creates things for reasons that reflect His Great Wisdom. He created us to have mercy on us, and to give us happiness. All beautiful human qualities are derived from His qualities.
https://islammessage.org/en/article/14237/Teachings-of-Islam
Teachings of Islam