The attributes of Almighty God preclude any evil since God is the source of justice, mercy and truth. God can never be thought of as doing an ungodly act. Hence we cannot imagine God telling a lie, being unjust, making a mistake, forgetting things, or having any such human failings. Similarly God can do injustice if He chooses to, but He will never do it because being unjust is an ungodly act.
“Allah is never unjust In the least degree.” [Al-Qur’an 4:40]
God can be unjust if He chooses to be so, but the moment God does injustice, He ceases to be God.
God does not make mistakes
God can make mistakes if He wants to, but He does not make mistakes because making a mistake is an ungodly act. The Qur’an says:
“…my Lord never errs.” [Holy Qur’an 20:52]
The moment God makes a mistake, he ceases to be God.
God does not forget
God can forget if He wants to. But God does not forget anything because forgetting is an ungodly act, which reeks of human limitations and failings. The Qur’an says:
“…my Lord never errs, nor forgets.” [Al-Qur’an 20:52]
God only performs Godly acts:
The Islamic concept of God is that God has power over all things. The Qur’an says in several places (Al -Qur’an 2:106; 2:109; 2:284; 3:29; 16:77; and 35:1):
“For verily Allah has power over all things”
Further, the Glorious Qur’an says:
“Allah is the doer of all that He intends.” [Al-Qura’n 85:16]
We must keep in mind that Allah intends only Godly acts and not ungodly acts.