Thank you for your question.
The essence and role of the Holy Spirit in both the authentic Qur’an and the human writings of the Bible books have been clarified before through previous answers posted by Ask About Islam service. Read for example: Useful Links:
What is the Holy Spirit?
What is the Holy Spirit? (Commentary)
Details about Ruh Al-Qudus
Mary and Angels
To sum up:
- The Holy Spirit is the Archangel Gabriel, who brought the message and support of Allah to all His messengers, Jesus (peace be upon him) included. Gabriel carried glad tidings to Mary of the birth of Jesus without a father, as in Qur’an 19:17-19 and 34-35. The same was the context of the Bible in Matthew 1:18 and Luke 1:26-27. Through him, Jesus was formed in her womb by the word of Allah, “Be.” Adam was created the same way, from neither a father nor a mother, by the same word of Allah, “Be.” (Qur’an 3:59).
- As a messenger and supporter of prophets, Gabriel was mentioned in Qur’an 16:102–11 and 2:87 (for Prophet Muhammad), and in 2:253 and 5:110 (for Jesus). We find the same role of the Holy Spirit in the Bible (for Jesus in Matthew 1:18 and in Luke 1:26–27, as above). The Holy Spirit was also quoted as supporting John the Baptist in Luke 1:15, Barnabas in Acts 11:24, and many others as in Acts 5:32.
- Belief in angels is a basic tenet of the Muslim faith (Qur’an 2:177). They are creatures not recognized by our limited human senses. The Messenger of Allah (peace be upon him) said, “Angels were created from light and the jinn from blazing fire. But Adam was created from that which you have been told” (Muslim).
- Allah has created angels to worship Him, to carry out His commands, and to be His messengers to His human prophets. Angels obey Allah in everything. They have different roles determined by Allah; some are delegated to protect human beings from odiousness, others to register human deeds, to bring victory to the believers, and so on. See, for example, Qur’an 21:26–27, 16:49–50, 37:164–166, 13:11, 43:80, 82:10–12.
- Angels are honored and respected, but they are neither worshiped nor considered part of the deity, as is the case with the invented Trinity. Islam regards the latter concept as a deviation from pure monotheism taught by Moses, Jesus, and all prophets of God. It was first introduced, after Jesus, by Paul, Luke, John, and by the Church councils in the fourth century. In spite of these changes, both the Old Testament and the Gospels still carry emphatic rejections of associating any entity in worship with Allah, for example, Exodus 1:3, Deuteronomy 5:7, Mark 12:29, Matthew 4:10, and many other explicit expressions in both Testaments.
I hope this satisfies your query.
Thank you and salam.