The Sermon before the House of Lords on the Occasion of the Martyrdom of King Charles I:
Here is a general supposition, that what is wrong cannot be avowed in its proper colours, but stands in need of some cloke to be thrown over it. God has constituted our nature, and the nature of society, after such a manner, that generally speaking, men cannot encourage or support themselves in wickedness upon the foot of there being no difference between right and wrong, or by a direct avowal of wrong; but by disguising it, and endeavouring to spread over it some colours of right. And they do this in every capacity and every respect, in which there is a right or a wrong. They do it, not only as social creatures under civil government, but also as moral agents under the government of God; in one case to make a proper figure in the world, and delude their fellow-creatures; in the other to keep peace within themselves, and delude their own consciences. And the delusion in both cases being voluntary, is, in Scripture, called by one name, and spoken against in the same manner: though doubtless they are much more explicit with themselves, and more distinctly conscious of what they are about, in one case than in the other....
These false professions of virtue, which men have, in all ages, found it necessary to make their appearance with abroad, must have been originally taken up in order to deceive in the proper sense: then they became habitual, and yet often still, to civility is often intended merely by way of form serve their original purpose of deceiving.
There is doubtless amongst mankind a great deal of this hypocrisy towards each other: but not so much as may sometimes be supposed. For part which has, at first sight, this appearance, is in reality that other hypocrisy before mentioned; that self-deceit, of which the Scripture so remarkably takes notice. There are indeed persons who live "without God in the world": and some appear so hardened as to keep no measures with themselves. But as very ill men may have a real and strong sense of virtue and religion, in proportion as this is the case with any, they cannot be easy within themselves but by deluding their consciences. And though they should, in great measure, get over their religion, yet this will not do. For as long as they carry about with them any such sense of things, as makes them condemn what is wrong in others, they could not but condemn the same in themselves, and dislike and be disgusted with their own character and conduct, if they would consider them distinctly, and in a full light. But this sometimes they carelessly neglect to do, and sometimes carefully avoid doing. And as "the integrity of the upright guides him," guides even a man's judgment; so wickedness may distort it to such a degree, as that he may "call evil good, and good evil; put darkness for light, and light for darkness"; and "think wickedly, that God is such an one as himself." Even the better sort of men are, in some degree, liable to disguise and palliate their failings to themselves: but perhaps there are few men who go on calmly in a course of very bad things, without somewhat of the kind now described in a very high degree. They try appearances upon themselves as well as upon the world, and with at least as much success; and choose to manage so as to make their own minds easy with their faults, which can scarce be without management, rather than to mend them.
From a Sermon upon the Character of Balaam (in Fifteen Sermons):
This was the man, this Balaam, I say, was the man, who desired to die the death of the righteous, and that his last end might be like his; and this was the state of his mind when he pronounced these words. So that the object we have now before us is the most astonishing in the world: a very wicked man, under a deep sense of God and religion, persisting still in his wickedness, and preferring the wages of unrighteousness, even when he had before him a lively view of death, and that approaching period of his days, which should deprive him of all those advantages for which he was prostituting himself; and likewise a prospect, whether certain or uncertain, of a future state of retribution; all this joined with an explicit ardent wish that, when he was to leave this world, he might be in the condition of a righteous man. Good God! what inconsistency, what perplexity is here! With what different views of things, with what contradictory principles of action, must such a mind be torn and distracted! It was not unthinking carelessness, by which he ran on headlong in vice and folly, without ever making a stand to ask himself what he was doing: no; he acted upon the cool motives of interest and advantage. Neither was he totally hard and callous to impressions of religion, what we call abandoned; for he absolutely denied to curse Israel. When reason assumes her place, when convinced of his duty, when he owns and feels, and is actually under the influence of the divine authority; whilst he is carrying on his views to the grave, the end of all temporal greatness; under this sense of things, with the better character and more desirable state present--full before him--in his thoughts, in his wishes, voluntarily to choose the worse--what fatality is here! Or how otherwise can such a character be explained? And yet, strange as it may appear, it is not altogether an uncommon one: nay, with some small alterations, and put a little lower, it is applicable to a very considerable part of the world. For if the reasonable choice be seen and acknowledged, and yet men make the unreasonable one, is not this the same contradiction; that very inconsistency, which appeared so unaccountable? To give some little opening to such characters and behaviour, it is to be observed in general that there is no account to be given in the way of reason, of men's so strong attachments to the present world: our hopes and fears and pursuits are in degrees beyond all proportion to the known value of the things they respect. This may be said without taking into consideration religion and a future state; and when these are considered, the disproportion is infinitely heightened. Now when men go against their reason, and contradict a more important interest at a distance, for one nearer, though of less consideration; if this be the whole of the case, all that can be said is, that strong passions, some kind of brute force within, prevails over the principle of rationality. However, if this be with a clear, full, and distinct view of the truth of things, then it is doing the utmost violence to themselves, acting in the most palpable contradiction to their very nature. But if there be any such thing in mankind as putting half-deceits upon themselves; which there plainly is, either by avoiding reflection, or (if they do reflect) by religious equivocation, subterfuges, and palliating matters to themselves; by these means conscience may be laid asleep, and they may go on in a course of wickedness with less disturbance. All the various turns, doubles, and intricacies in a dishonest heart cannot be unfolded or laid open; but that there is somewhat of that kind is manifest, be it to be called self-deceit, or by any other name.
The sermon on Balaam is worth reading in full; it's one of the great classical texts on self-deception.