Allah says in the Holy Quran in Chapter 67 Surah Al Mulk verse 2:
He (Allah) created death and life
that He may test you, to see which of you is the best in deeds.
The All-Knowing, All-Wise Lord bestowed two things upon Jinns and Humans which He did not bestow upon any in His Supreme Creation, and thus put only these two amongst all His creation to a test for a period of one life:
- Intelligence or the Power of Reasoning
- A free will for a limited period of one life-time to choose whatever path one wishes to live his life.
(...)
No one is born a Shaytaan, nor is the shaytaan a separate race or creed or creation of the Lord Creator; but rather it is the choice one amongst the Jinn or Human race makes, or the deeds one does of ones own free will that makes one Pious or makes one a Shaytaan.
(...)
Allah Says in the Holy Quran Chapter 7 Surah Aaraaf verses 11-25:
11 It is We who created you and gave you shape; then We bade the Angels bow down to Adam and they bowed down;
not so Iblees (the Jinn); he refused to be of those who bow down.
12 (Allah) said: "what prevented thee (O Iblees) from bowing down when I commanded thee?" He (Iblees) said: "I am better than he: thou didst create me from fire and him from clay."
13 (Allah) said: "Get thee down from this: it is not for thee to be arrogant here: get out for thou art of the meanest (of creatures)."
14 He (Iblees) said: "give me respite till the day they are raised up."
15 (Allah) said: "be thou among those who have respite."
16 He (Iblees) said: "because Thou hast thrown me out of the way lo! I will lie in wait for them on Thy straight way.
17 "Then will I assault them from before them, and behind them, from their right, and their left: nor wilt Thou find in most of them gratitude (for Thy Mercies).
18 (Allah) said: "Get out from here, disgraced and expelled. If any of them follow thee, Hell will I fill with you all.
Why did Allah(SWT) create shatan(devil) if Allah - Islamhelpline