When Mordecai hears that the slaughter of the Jews has been fixed by imperial decree, he dresses himself in somber clothing and approaches the doors of the palace with a bitter soul and a wailing voice; and when the leaders of the Church hear about the persecution which the princes of the earth desire to inflict upon the blameless slaves of Christ, they long to pour out their troubles—with fasting and charity, with vigils and prayer, with tears and the devotion of the heart—to the hidden recesses of Heaven, i.e. in the sight of the supreme judge. So in light of the honor and the prayers of the... true queen, i.e. the holy Church which even now wanders the earth for some of the time, and rules with the Lord in Heaven for the rest, they deserve to be heard by the king of all ages. If, moreover, one were to ask how it might befit a just king to inflict torments on the innocent, he should know that the source of this is not some desire to do harm but the intention of the highest providence; for the divine wisdom—which conquers every sort of wickedness and reaches powerfully from one end to the other, and disposes everything with ease—does whatever it wishes in Heaven and on earth, on the sea and in all the depths. It is, in other words, with just judgment that his faithful servants are delivered into the hands of the persecutors, whether to expiate their sins or to correct their behavior or even to add to their merits or multiply their rewards, since— as the prophet testifies—"the Lord is just in all his ways, and holy in all his acts; he is close to all who call upon him" (Psalms 145). In truth, he will do the will of those who fear him, and will listen to their prayers and bring them salvation; for the Lord did not deliver Job into Satan's hands to destroy him because he asked him to, but so that with Job's help he could defeat his most wicked enemy and so acquire for himself the palm of victory, and leave to that enemy the just punishment for his wickedness. The apostle Paul was subjected to a corporal goad, namely the angel of Satan, who pummeled him so that his virtue would be perfected in a state of weakness. We should also be careful not to pass over in silence the statement that Mordecai could not enter the royal court because he had put on sackcloth, but instead got as far as the doors of the palace; because no one who has been polluted by the life of this world may enter the court of the heavenly realm, rather each of us should, before the last day of his life, knock on the entrance of the kingdom by chastising his body and repenting in his heart for as long as he is here. And this way, he will be fortunate to enter the paradise of the Lord after he has passed into death.
Source: Commentary on Esther