God searches the heart and understands every motive. To be acceptable to Him, our motives must spring from a love for Him and a desire to glorify Him. Obedience to God performed from a legalistic motive – that is a fear of the consequences or to gain favor with God – is not pleasing to God.
Jerry Bridges