In Islam Allah(swt) created Angels before human and there are many we don't know how many angels and they have names but we only know the names of 8 angels I'll start with there duties:
Among the angels is one whose task it was to convey the revelation from Allah to His Messengers; this is al-Rooh al-Ameen, Jibril, upon whom be peace. Allah says:
"Say: whoever is an enemy to Jibreel - for he brings down the (revelation) to your heart by Allah’s will. . . " [al-Baqarah 2:97]
"Which the trustworthy spirit has brought down,
Upon your heart, that you may be (one) of the warners."
[al-Shu‘araa’ 26:193-194]
Another is responsible for rain, directing it wherever Allah wishes. This is Mikaa’eel, upon whom be peace. He has helpers, who do what he tells them, by the command of his Lord; they direct the winds and clouds, as Allah wills.
Another is responsible for blowing the Trumpet, which will be blown by Israafeel at the onset of the Hour (the Day of Judgement).
Others are responsible for taking people’s souls: these are the Angel of Death and his helpers. Allaah says (interpretation of the meaning): "Say: ‘the Angel of Death, put in charge of you, will (duly) take your souls, then shall you be brought back to your Lord.’" [al-Sajdah 32:11] There is no proof in any saheeh hadeeth that his name is ‘Azraa’eel.
Others are responsible for protecting the slave throughout his life, when he stays home and when he travels, when he is asleep and when he is awake. These are the "angels in succession" concerning whom Allaah says (interpretation of the meaning):
"It is the same (to Him) whether any of you conceal his speech or declare it openly, whether he be hid by night or go forth freely by day.
For each (person), there are angels in succession, before and behind him. They guard him by the Command of Allaah. Verily! Allaah will not change the good condition of a people so long as they do not change their state of goodness themselves (by committing sin and by being ungrateful and disobedient to Allaah). But when Allaah wills a people’s punishment, there can be no turning back of it, and they will find besides Him no protector."
[al-Ra‘d 13:10-11]
Others are responsible for recording the deeds of man, good and bad. These are the "honourable scribes" (kiraaman kaatibeen) and are referred to in the aayaat (interpretation of the meanings):
". . . and He sends guardians (angels guarding and writing all of one’s good and bad deeds) over you . . ." [al-An‘aam 6:61]
"Or do they think that We hear not their secrets and their private counsel? (Yes We do) and Our Messengers (appointed angels in charge of mankind) are by them, to record."
[al-Zukhruf 43:80]
"(Remember!) that the two receivers (recording angels) receive (each human being after he or she has attained the age of puberty), one sitting on the right and one on the left (to note his or her actions).
Not a word does he (or she) utter, but there is a watcher by him ready (to record it)."
[Qaaf 50:17-18]
"But verily, over you (are appointed angels in charge of mankind) to watch you,
Kiraaman (honourable) kaatibeen - writing down (your deeds)."
[al-Infitaar 82:10-11]
Others are responsible for testing people in the grave. These are Munkar and Nakeer. From Abu Hurayrah who said: "The Messenger of Allah (Peace & Blessings of Allaah be upon Him) said: ‘When the deceased is buried (or he said: when one of you is buried), there come to him two blue-black angels, one of whom is called Munkar and the other Nakeer. They ask him, ‘What did you used to say about this man?’ . . ." [The hadeeth is quoted in full above]
Some of them are the keepers of Paradise. Allaah says (interpretation of the meaning):
"And those who kept their duty to their Lord will be led to Paradise in groups, till, when they reach it, its gates will be opened and its keepers will say: Salaamun ‘alaikum (peace be upon you!). You have done well, so enter here, to abide therein."
[al-Zumar 39:73]
Some of them are the keepers of Hell, the "guards of Hell", whose number is nineteen and whose leader is Malik, upon whom be peace. Allaah says (interpretation of the meaning):
"And those who disbelieved will be driven to Hell in groups, till, when they reach it, the gates thereof will be opened. And its keepers will say, ‘Did not the Messengers come to you from yourselves, - reciting to you the Verses of your Lord, and warning you of the Meeting of this Day of yours?’ They will say: ‘Yes, but the Word of torment has been justified against the disbelievers!’" [al-Zumar 39:71]
"Then. let him call upon his council (of helpers),
We will call the guards of Hell (to deal with him)!" [al-‘Alaq 97:17-18]
"And what will make you know exactly what Hell-fire is?
It spares not (any sinner), nor does it leave (anything unburnt)!
Burning the skins!
Over it are nineteen (angels as guardians and keepers of Hell).
And We have set none but angels as guardians of the Fire, and We have fixed their number only as a trial for the disbelievers - in order that the People of the Scripture may arrive at a certainty and the believers may increase in Faith . . ." [al-Muddaththir 74:27-31]
"And they will cry: ‘O Malik (Keeper of Hell)! Let your Lord make an end of us.’ He will say: ‘Verily you shall abide forever.’" [al-Zukhruf 43:77]
One of the angels is responsible for the sperm in the womb, as is mentioned in the hadeeth of Ibn Mas‘ood (may Allah be pleased with him), who said: "The Messenger of Allah (Peace & Blessings of Allaah be upon Him), whose truthfulness is confirmed, said: ‘The way that each of you is created is that he is gathered in his mother’s womb for forty days as a sperm drop, and then for a similar length of time as a blood-clot, and then for a similar length of time as a lump of flesh. Then an angel is sent and he breathes the spirit into (the foetus), and is charged with four commands: to write down his provision, his life-span, his actions, and whether he will be wretched or happy. By the One besides Whom there is no other god, one of you may do the deeds of the people of Paradise until he is just a cubit away from entering it, then his fate will overtake him and he will begin to do the deeds of the people of Hell, so he will enter Hell; and one of you may do the deeds of the people of Hell until he is just a cubit away from entering it, then his fate will overtake him and he will begin to do the deeds of the people of Paradise, so he will enter Paradise." (Reported by al-Bukhaari, al-Fath, no. 3208 and by Muslim, no. 2643).
Some angels carry the Throne of Allaah, as He describes in the Qur’aan (interpretation of the meaning):
"Those (angels) who bear the Throne (of Allaah) and those around it glorify the praises of their Lord, and believe in Him, and ask forgiveness for those who believe (in the Oneness of Allaah) (saying): ‘Our Lord! You comprehend all things in mercy and knowledge, so forgive those who repent and follow Your way, and save them from the torment of the blazing Fire!’" [Ghaafir 40:7]
Some of the angels travel throughout the world, seeking out gatherings of dhikr (remembrance of Allaah). Abu Hurayrah said: "The Messenger of Allaah (Peace & Blessings of Allaah be upon Him) said: ‘Allah, be He be blessed and exalted, has angels who travel the highways seeking out the people of dhikr. When they find people remembering Allah, the Mighty and Majestic, they call out to one another, "Come to what you hunger for!" and they enfold them with their wings, stretching up to the lowest heaven. Their Lord asked then, and He knows better than them, "What are My slaves saying?" They say: "They are glorifying, magnifying, praising and extolling You." He asks, "Have they seen Me?" They say, "No, by Allaah, they have not seen You." He asks, "And how would it be if they saw Me?" They say, "They would be even more fervent and devoted in their praise and worship." He asks, "What are they asking me for?" They say, "They ask You for Paradise." He asks, "And have they seen it?" They say, "No, by Allaah, O Lord, they have not seen it." He asks, "And how would it be if they saw it?" They say: "They would be even more eager for it and they would beseech You even more earnestly." He asks, "And what do they seek My protection from?" They say, "From the Fire of Hell." He asks, "Have they seen it?" They say, "No, by Allaah, they have not seen it." He asks, "And how would it be if they saw it?" They say: "They would be even more afraid and anxious to escape it." Allah says: "You are My witnesses that I have forgiven them." One of the angels says: "So-and-so is not really one of them; he came (to the gathering) for some other reason." Allah says, "They were all in the gathering, and one of them will not be excluded (from forgiveness)."’" (Reported by al-Bukhaari, al-Fath, no. 6408).
Some of them are responsible for the mountains. ‘Aa’ishah (may Allaah be pleased with her) asked the Prophet (Peace & Blessings of Allaah be upon Him): "Have you ever faced any day more difficult than the day of Uhud?" He said: "I suffered at the hands of your people and the worst that I suffered was what I suffered at their hands on the day of ‘Aqabah. That was when I went to call Ibn ‘Abd Yaalayl ibn ‘Abd al-Kalaal to Islam, and he did not respond. I left, feeling depressed and hardly knowing where I was going. I did not recover until I found myself in Qarn al-Tha‘aalib. I raised my head and saw that I was being shaded by a cloud. I looked, and saw Jibreel in the cloud. He called me and said: ‘Allah has heard what your people said and how they responded to you. He has sent the Angel of the Mountains so that you can tell him to do to them whatever you want.’ The Angel of the Mountains called me and greeted me, then said: ‘O Muhammad, tell me what you want me to do. If you want, I can crush them between two mountains.’" The Prophet (Peace & Blessings of Allaah be upon Him) said: "All I hope for is that Allah will bring forth from their loins people who will worship Allah alone and not associate any partner with Him." (Reported by al-Buhaari, Fath, no. 3231).
Some of them visit the Much Frequented House (al-bayt al-ma‘moor). In the lengthy hadeeth describing the Israa’ and Mi‘raaj (the Night Journey and the Ascent to Heaven), the Prophet (Peace & Blessings of Allaah be upon Him) said:
"Then I was taken up to the Much-Frequented House: every day seventy thousand angels visit it and leave, never returning to it again, another [group] coming after them."
There are also angels standing in rows, who never get tired or sit down, and others who bow or prostrate, and never raise their heads, as was reported by Abu Dharr, may Allah be pleased with him, who said: "The Messenger of Allah (Peace & Blessings of Allaah be upon Him) said: ‘I see what you do not see and hear what you do not hear. The heaven makes a noise like groaning, and it has the right to (or it is no surprise), for there is no space in it the width of four fingers, but there is an angel there, placing his forehead in sujood (prostration) to Allaah. By Allaah, if you knew what I know, you would laugh little and weep much, you would not enjoy your relationships with women and you would go out in the street praying to Allaah.’" (Sunan al-Tirmidhi, no. 2312)