Whether the wicked can work miracles?

Objections

Objection 1 : It would seem that the wicked cannot work miracles. For miracles are wrought through prayer, as stated above (Article [1], ad 1). Now the prayer of a sinner is not granted, according to Jn. 9:31, "We know that God doth not hear sinners," and Prov. 28:9, "He that turneth away his ear from hearing the law, his prayer shall be an abomination." Therefore it would seem that the wicked cannot work miracles.
Objection 2 : Further, miracles are ascribed to faith, according to Mt. 17:19, "If you have faith as a grain of mustard seed you shall say to this mountain: Remove from hence hither, and it shall remove." Now "faith without works is dead," according to James 2:20, so that, seemingly, it is devoid of its proper operation. Therefore it would seem that the wicked, since they do not good works, cannot work miracles.
Objection 3 : Further, miracles are divine attestations, according to Heb. 2:4, "God also bearing them witness by signs and wonders and divers miracles": wherefore in the Church the canonization of certain persons is based on the attestation of miracles. Now God cannot bear witness to a falsehood. Therefore it would seem that wicked men cannot work miracles.
Objection 4 : Further, the good are more closely united to God than the wicked. But the good do not all work miracles. Much less therefore do the wicked.