God, by definition, is Just, Wise, Merciful, Compassionate, and Perfect. He has created man by breathing into him of His own Spirit (Qur’an, 15:29; 32:9; 66:12).
﴿فَإِذَا سَوَّيْتُهُ وَنَفَخْتُ فِيهِ مِنْ رُوحِي فَقَعُوا لَهُ سَاجِدِينَ﴾ ﴿ثُمَّ سَوَّاهُ وَنَفَخَ فِيهِ مِنْ رُوحِهِ وَجَعَلَ لَكُمْ السَّمْعَ وَالأَبْصَارَ وَالأَفْئِدَةَ قَلِيلاً مَا تَشْكُرُونَ﴾ ﴿وَمَرْيَمَ ابْنَتَ عِمْرَانَ الَّتِي أَحْصَنَتْ فَرْجَهَا فَنَفَخْنَا فِيهِ مِنْ رُوحِنَا وَصَدَّقَتْ بِكَلِمَاتِ رَبِّهَا وَكُتُبِهِ وَكَانَتْ مِنْ الْقَانِتِينَ﴾
Since God is the absolute infinite good and His Spirit the absolute perfect one; since man, through creation, received of the Spirit of God, then man was bound to retain at least some portion of this good Spirit of the Creator. This may account for the good dispositions of man and his spiritual longings. But, on the other hand, God created man to worship Him, not to be His equal, rival, the perfect incarnation or absolute embodiment of His goodness. This means that no matter how much good and perfect man may be, by the grace of creation, he is still far short of the goodness and perfection of the Creator. Man is not without such qualities, to be sure. But they are limited and proportionate to man’s finite nature, capacity, and responsibility. This may explain the imperfection and fallibility of man.
However, imperfection and fallibility are not the equivalent of sin or synonymous with criminality – at least not in Islam. If man is imperfect he is not left helpless or deserted by God to fall victim to his shortcomings. He is empowered by revelations, supported by reason, fortified by the freedom of choice, and guided by various social and psychological dispositions to seek and achieve relative perfection. The constant gravitation between the forces of good and evil is the struggle of life. It gives man something to look forward to, ideals to seek, work to do, and roles to play. It makes his life interesting and meaningful, not monotonous and stagnant. On the other hand, it pleases God to see His servants in a state of spiritual and moral victory.
According to the moral scale of Islam, it is not a sin that man is imperfect or fallible.