Jesus said “This kind goeth not out but by prayer and fasting.”
If this kind goes out by the prayer and fasting of another person, then it is even less able to enter one who fasts and prays.
Although there are a slew of demons and all the air is packed with them, they cannot do harm to one who is protected by prayer and fasting.
Fasting is a universal temperance, while prayer universal communication with God; the former defends from the outside, whereas the latter from within, for it directs a fiery weapon against the enemies. The demons can sense a man of abstinence and of prayer from a distance, and they flee far away so as to avoid a painful blow.
Is it feasible to think that where there is no fasting and prayer, there is present a demon? Yes, indeed.
The demons lodging in a person, do not always reveal their presence, but lurk there, stealthily teaching their host every evil and turning him away from every good thing; so this person is certain that he is doing everything on his own, but meanwhile he is only fulfilling the will of his enemy.
Just commence prayer and fasting and the enemy will immediately depart, then wait on the side for an opportunity to somehow return again. And he truly will return, as soon as prayer and fasting are abandoned.
Based on Saint Theophan the Recluse, Matthew 17:14-23