The Prayer to St. Michael
Later devotion (Pope Leo XIII, 1886), drawing on Revelation 12:7-9 and Jude 9
Saint Michael the Archangel, defend us in battle; be our protection against the wickedness and snares of the devil. May God rebuke him, we humbly pray; and do thou, O Prince of the heavenly host, by the power of God, cast into hell Satan and all the evil spirits who prowl about the world seeking the ruin of souls. Amen.
Another common wording ("thrust into hell")
Saint Michael the Archangel, defend us in battle; be our protection against the wickedness and snares of the devil. May God rebuke him, we humbly pray; and do thou, O Prince of the heavenly host, by the power of God, thrust into hell Satan and all the evil spirits who prowl about the world seeking the ruin of souls. Amen.
In the original languages
Latin
Sancte Michael Archangele, defende nos in proelio;
contra nequitiam et insidias diaboli esto praesidium.
Imperet illi Deus, supplices deprecamur:
tuque, princeps militiae caelestis, Satanam aliosque spiritus malignos,
qui ad perditionem animarum pervagantur in mundo, divina virtute in infernum detrude. Amen.
In Scripture
Revelation 12:7-9 King James Version
7And there was war in heaven: Michael and his angels fought against the dragon; and the dragon fought and his angels,
και εγενετο πολεμος εν τω ουρανω ο μιχαηλ και οι αγγελοι αυτου επολεμησαν κατα του δρακοντος και ο δρακων επολεμησεν και οι αγγελοι αυτου
8And prevailed not; neither was their place found any more in heaven.
και ουκ ισχυσαν ουτε τοπος ευρεθη αυτων ετι εν τω ουρανω
9And the great dragon was cast out, that old serpent, called the Devil, and Satan, which deceiveth the whole world: he was cast out into the earth, and his angels were cast out with him.
και εβληθη ο δρακων ο μεγας ο οφις ο αρχαιος ο καλουμενος διαβολος και ο σατανας ο πλανων την οικουμενην ολην εβληθη εις την γην και οι αγγελοι αυτου μετ αυτου εβληθησαν
Jude 1:9 King James Version
9Yet Michael the archangel, when contending with the devil he disputed about the body of Moses, durst not bring against him a railing accusation, but said, The Lord rebuke thee.
ο δε μιχαηλ ο αρχαγγελος οτε τω διαβολω διακρινομενος διελεγετο περι του μωσεως σωματος ουκ ετολμησεν κρισιν επενεγκειν βλασφημιας αλλ ειπεν επιτιμησαι σοι κυριος
History
Pope Leo XIII ordered a set of prayers, the Leonine Prayers, to be said after every Low Mass in 1884, and added this prayer to them in 1886. Accounts say it came after a troubling vision he had after Mass; that story is told in many places but is hard to check against a primary source.
There is no single official English text of the prayer, and both "cast into hell" and "thrust into hell" are in common use; the Latin is the fixed text, and both English versions render it. A separate, much longer prayer to St. Michael, used in the Church's exorcism rite, is also associated with Leo XIII; it is a different text, and sources differ on whether it dates from 1888 or 1890.
The Leonine Prayers were suppressed by the instruction Inter oecumenici of 1964 (in effect from 1965), which removed the obligation to say them; it did not forbid the prayer. In 2018 Pope Francis asked Catholics to end the Rosary with it and with the Sub tuum praesidium during October.
The figure of Michael comes from Scripture: Michael as a great prince in Daniel 12:1, as the archangel who disputed with the devil in Jude 9, and as the leader of heaven's armies in Revelation 12:7.
Later devotion. Sources consulted: Wikipedia: Prayer to Saint Michael; Wikipedia: Leonine Prayers.