Third, as to the provision of a remedy, he adds: Otherwise, while the other is still far off, he sends an embassy and asks for terms of peace, namely, if he recognizes his own weakness with respect to this threefold battle, he labors to avoid that fight. The sending of this embassy is nothing other than the sending of prayer, which the Angels carry on our behalf before the sight of God as our ambassadors: Tobit 12: "When you prayed and gave alms and buried the dead, I offered your prayer before the Lord." This embassy must be sent for repelling the battle of temptations, which come from the ki...ng of pride: as Paul prayed, of whom 2 Corinthians 12: "There was given me a thorn in my flesh, an angel of Satan to buffet me: for which reason I three times besought the Lord," etc. — Likewise, this embassy must be sent for repelling the battle of divine contentions, which comes from the king of justice, as the Prophet prayed in the Psalm: "Enter not into judgment with your servant, O Lord, for in your sight no living person shall be justified," etc. The embassy must also be sent for repelling the battle of tribulations, which comes from the king of providence, as Jonah prayed in Jonah 2: "Jonah prayed to the Lord his God from the belly of the fish and said: I cried to the Lord from my tribulation, and he heard me."
From which it is gathered that the consideration of danger stirs one to the procurement of a remedy: whence the Gloss: "We, attending to the insufficiency of our frailty, ought to send ahead an embassy of tears, good works, and pure affections to obtain peace from the severe judge." Therefore it is said in Sirach 18: "Before sickness apply the medicine, and before judgment examine yourself, and in the sight of God you will find propitiation. Before sickness humble yourself, and in the time of infirmity show your manner of life," so that thus through the embassy of priests you may find the King appeased.
Source: Commentary on Luke, Chapter 14