"Question. If any shall ask, as some very readily will, how can such gross evils possibly consist with a form of godliness? I answer: 1. That a form of godliness is taken here in a very large sense, taking in all that pretends any the least and most remote regard or relation to Christ, with which all or most of these evils may some way consist. 2. These evils are not practiced but under the pretext of some good, or in order to the furthering of some really or seeming good and honest design. 3. Though these evils be gross and abominable in the sight of God, yet they are such as may consist with a form of godliness in the sight of most men. Such persons may have a form of godliness in that respect, and yet be lovers of themselves, proud, boasters, heady, high-minded, etc. It is therefore not so great a wonder that the apostle supposes such lie latent and lurking under a form and show of godliness, so as they make the times perilous, and make it somewhat difficult to discern and discover them." Sermon on 2 Timothy 3:5, Collected Sermons: 61 Sermons (2017), p. 833 (it's a fat volume). Layout attached; I could find no edition online (more the reason the collection was important to make.