The Almighty Allah is Just and Righteous, for justice is one of the attributes of perfection. Allah possesses all attributes of perfection. He, in His words, has repeatedly praised justice and has reproached injustice and cruelty. He commands people to do justice and prohibits them from injustice. How would it be possible for Allah to possess attributes that He considers indecent or to lack whatever He considers good and decent?
The Almighty Allah states: "Surely Allah does not do injustice to the weight of a particle...(4:40)."
He also states: "...And your Lord does not deal unjustly with any one (18:49)."
Allah states: "...And Allah does not desire injustice for (His) servants (40:31)."
He also states: "Whatever benefit comes to you (O man 
, it is from Allah, and whatever misfortune befalls you, it is from yourself..(4:79)."
Allah also states: "Who made good everything that He has created...(32:7)."
Thus, any phenomenon, in itself, has been created in an extremely proper manner. Any hideousness, injustice, deficiencies, or shortcomings that are seen in some creatures can only be experienced by way of comparison and in relationship with other beings. F or example, snakes and scorpions are evil and unjust in their relation to man. When compared with flowers, thorns are not so beautiful, but they are all, in their own right, wonderful and thoroughly beautiful creatures.
Indeed the Almighty Allah declares some of man's voluntary deeds religiously bad and evil and orders man to refrain from doing them. They include sins such as polytheism, disobedience of parents, killing the innocent, drinking alcoholic beverages, gambling, and any other acts which are against religious obligations.
These kinds of actions, which are called sins, are evil acts and are not attributed to Allah because they bear the title of opposition to and rejection of obligation (title of negation). If these acts are willingly performed by religiously obligated people, then they will be attributed to these people, thus making them responsible and subject to punishment.
BLESSING
When we see an enfeebled needy, we try to meet his demands to the best of our ability. We help a desperately poverty-stricken man or take a blind man's hand in our own and lead him to his destination. We consider these acts as compassion and blessing and thus regard them as praiseworthy deeds.
Actions performed by the Capable and Independent Allah can be nothing but blessings. By granting His innumerable graces, He lets everyone enjoy them. Without being dependent upon anyone else, Allah provides part of the needs of the creatures. Allah states: "...And if you count Allah's favours, you will not be able to number them...(14:34)."
He also states: "...My mercy encompasses all things...(7:156)."
OTHER ATTRIBUTES OF PERFECTION
"And Your Lord is the Self-sufficient one, the Lord of mercy...(6:133)."
Explanation: Any goodness and beauty existing in the world and any attribute of perfection that can be conceived are favours that the Almighty Allah has bestowed upon His creatures, and through this means satisfied one of the needs of creation. Certainly, if He lacked that perfection, He would be unable to grant favours to others and would have a share in the needs of people. Thus, Allah possesses all attributes of perfection and is endowed with all attributes of perfection, such as, life, knowledge, might, etc, without having received a single aspect of perfection from others and without asking them for help. Attributes of imperfection and causes for need and indigence, such as weakness, ignorance, death, difficulty, etc, will not find a way to His Holy Presence.