Makes me think of the Pharisees. The following verses came from
Daily Bible Study - Who Were The Pharisees?
"The scribes and the Pharisees sit on Moses' seat; so practice and observe whatever they tell you, but not what they do; for they preach, but do not practice. They bind heavy burdens, hard to bear, and lay them on men's shoulders; but they themselves will not move them with their finger. They do all their deeds to be seen by men; for they make their phylacteries broad and their fringes long, and they love the place of honor at feasts and the best seats in the synagogues, and salutations in the market places, and being called rabbi by men. But you are not to be called rabbi, for you have one teacher, and you are all brethren. And call no man your father on earth, for you have one Father, who is in heaven." (Matthew 23:2-9 RSV)
"Woe to you, scribes and Pharisees, hypocrites! for you tithe mint and dill and cummin, and have neglected the weightier matters of the Law, justice and mercy and faith; these you ought to have done, without neglecting the others. You blind guides, straining out a gnat and swallowing a camel!" (Matthew 23:23-24)
The lesson from the Pharisees' example is that self-righteousness is not righteousness, and that God's true people are to live according to all of God's Word, not just certain parts that are most convenient or to one's own liking