His name was Azazeel. He is also known as Iblees. He used to
pray a lot and even used to give lectures to the angels.
One day there was a notice in the heavens which said that
someone was going to be ordered out of the heavens.
All the angels were very worried because they thought it
might be one of them. They went to Jibrail who was one of
the most important angels to ask him whether he could do
anything. Jibrail said he too was worried because it might be
himself.
Jibrail suggested that they go to Azazeel because he was very
clever. Azazeel told them not to worry at all for he would pray
to Allah for all of them. He forgot himself thinking he was the
best and it could never be him. He had kibr (pride).
Allah made the first human being – Prophet Adam (pbuh) He
asked all the angels including Azazeel to do sijda to Prophet
Adam (pbuh)
Iblees disobeyed Allah and refused to do sijda saying that he
was better than Prophet Adam (pbuh) and so he would not do
sijda.
“I am made out of fire and he is made out of earth!” he told
Allah.
You see, he was only looking at the outside and not the inside
and more important, He disobeyed Allah.
He was ordered out of heaven.
Excellent Stories Vol 1