Truth is, those who abide by the law will often be viewed by men as the "godly" ones. It happened in Jesus' day with the Pharisees and Sadducees; they deceived men, as well as themselves, into thinking that their own good works were enough to make them righteous before a Holy God. They fully expected God to shower them with gift certificates to the bazaar!
Although it is important to obey the law, it isn't the real test of godliness. Actually, it's possible for you to keep the speed limit and still be an ungodly person. It's possible to stop at all the stop signs, hold the door for women, chew with your mouth closed, clock-in to work five minutes early every morning, and perform good deeds galore—and still be completely unholy in your heart.
Although everyone may sing your praises, the question is: what does God see when He looks at your heart?
God reminded Samuel in 1 Samuel 16:7 that man looks at the outward appearance, but the Lord looks at the heart. Even today, God is the only one who sees past the gimmicks—the facade, the clothes, the make-up—directly into the heart of every person.
The encouragement of this truth rests in the fact that, because God sees the secret intents and motives of every person's heart, He actually does reward those who keep their hearts pure. Though the world may often get it wrong and may praise deceptive people, God never will.
The world rewards people of influence; God rewards people of integrity . . . and our reward is just ahead.
Taken from "The Guise of Godliness" by Wisdom for the Heart Ministries (used by permission).