A slightly-edited extract from The Righteous Man’s Refuge, in Flavel’s Works, vol 3.
It is a deep and dangerous policy of Satan to shut up our refuge in God against us, as much as possible, in times of trouble. Satan, like a cunning fowler, despairs of getting the birds in his net, unless he can beat them out of their covert; it is therefore his great design to estrange and alienate the saints from their God as much as he can, thereby to cut off their retreat to Him in times of trouble; a mischief which the people of God have always vehemently prayed against (Ps 102:2, Jer 17:17). O that we would beware of it and shun this evil by our watchfulness, anticipating it before the danger arises. There are, among others, three special projects of Satan whereby he manages this mischievous design against the people of God.
(1.) By drawing their consciences under guilt, on purpose to destroy the liberty, freedom and childlike confidence of their souls in their addresses to God.
This, if anything in the world, will do it (Job 11:14,15). What a loss will that poor soul be at, in times of trouble, whose grumbling and condemning conscience will not suffer him to look up cheerfully and believably in the face of its God and Father, having lost its previous freedom at the throne of grace!
(2.) By prevailing on them to neglect their course of daily duties, and thereby to restrain their communion with God and, in a great measure, lose their acquaintance with Him.
This is a dangerous policy of the devil, and an unspeakable prejudice to the soul. O Christian, take heed of a lazy, slothful spirit and a vain and earthly heart, which will easily suffer the duties of religion to be jostled aside and put by for every trivial occasion. Especially, beware of slight, formal and dead-hearted performance of duty, which is little better than omitting it; this may indeed prevent the scandal but can never give you the comfort of religion.
(3.) By beclouding their interest in God, and darkening their titles and evidences by thick clouds of doubts and fears.
This is the sad case of many a poor Christian in a day of trouble; without are fightings and within are fears. Brethren, I beseech you, think often what those things are which usually put men into such frights and straits when imminent dangers stare them in the face, what it is that daunts and discourages the hearts of Christians at such times. And, as you value the peace and freedom of your souls with God, do not give your consciences any reason to reproach you for mis-spent time, indulged sins, neglected duties, formality or hypocrisy in duties, sinister and by-ends in your transactions with God or man. Preserve the purity and peace of your consciences, as you would preserve your two eyes. If by such wiles the devil cannot bar up the way to your God, or shut up your refuge in Him, your outward troubles can do you no hurt.