Allâh has predestined good and evil
بِسْمِ اللهِ الرَّحْمَنِ الرَّحِيم
The Prophet MuHammad Salla lLâhu `alayhi wa sallam said: « There will be people from my community who will become disbelievers in Allah and in the Qur’an and they do not realize, I said O messenger of God, how do they say? He said they believe in some of the predestination and they deny part of it, they say the good comes from God and the evil comes from the chaytan. » related by Imam Al Bayhaqiyy with a chain of transmission according to Râfi` ibnu Khadîj the companion of the the Prophet.
It is a duty to believe that Allâh has predestined and created good and evil, but Allâh rewards the good and does not reward the evil. Allâh orders good and forbids the evil. Allâh is the creator of the acts of slaves, of their wills and of their intentions whether they be good or evil.
Believing in the destiny of good and evil means: to believe that everything that comes into existence, be it good or evil, is by the Eternal Will of Allah. The good actions of the slave are according to the Will and Acceptance of Allah. The evil actions of the slave are according to the Will of Allah, but not His Acceptance. Allâh says in the Qur’an:
﴿ إِنَّا كُلَّ شَىْءٍ خَلَقْنَاهُ بِقَدَرٍ ﴾
which means: « Certainly, We create everything according to a Destiny. » [Surat Al-Qamar, ‘âyah 49] (here it is the “We” of glorification that designates God).
The Prophet MuHammad Sallallâhu `alayhi wa sallam, said:
« وَتُؤْمِنَ بِالْقَدَرِ خَيْرِهِ وَشَرِّهِ »
Which means: « and you have to believe in the destiny of the good and the evil. » [Related by Muslim]
The meaning of this Hadith is as follows: the creatures whom Allâh has predestined, among whom there is good and evil, exist by the eternal predestination of Allâh. Thus, predestination, which is an attribute of Allâh, can not be described as bad in itself.
See: Predestination of Good and Evil. Destiny Qadar