Proverbs 16:2-3
All the ways of a man are clean and innocent in his own eyes (and he may see nothing wrong with his actions), But the Lord weighs and examines the motives and intents. Commit your works to the Lord and your plans will succeed.
The motive in our hearts, whether good or bad, directs our behavior. The motive behind everything we do is more important than what we do because our motive will direct our conduct. When we have Godly reasons and a pure heart, it will show in our actions. Success with God requires Godly behavior so let our motives be with a pure heart.