Cites this verse
I answer that, Some say that when once a demon has been overcome he can no more tempt any man at all, neither to the same nor to any other sin. And others say that he can tempt others, but not the same man. This seems more probable as long as we understand it to be so for a certain definite time: wherefore (Lk. 4:13) it is written: "All temptation being ended, the devil departed from Him for a time." There are two reasons for this. One is on the part of God's clemency; for as Chrysostom says (Super Matt. Hom. v) [*In the Opus Imperfectum, among his supposititious works], "the devil does not tempt man for just as long as he likes, but for as long as God allows; for although He allows him to tempt for a short time, He orders him off on account of our weakness." The other reason is taken from the astuteness of the devil. As to this, Ambrose says on Lk. 4:13: "The devil is afraid of persisting, because he shrinks from frequent defeat." That the devil does nevertheless sometimes return to the assault, is apparent from Mt. 12:44: "I will return into my house from whence I came out."
Summa Theologiae I, q. 114, a. 4: Whether demons can lead men astray by means of real miracles? Whether a demon who is overcome by man, is for this reason hindered from making further assaults? I answer that (tr. Fathers of the English Dominican Province)