Acknowledge the God of your father, and serve him with wholehearted devotion and with a willing mind, for the LORD searches every heart and understands every motive behind the thoughts.
From 1 Chronicles 28:9
All a person's ways seem pure to them, but motives are weighed by the LORD.
Proverbs 16:2 NIV
3 When you ask, you do not receive, because you ask with wrong motives, that you may spend what you get on your pleasures. 4 You adulterous people,[a] don't you know that friendship with the world means enmity against God? Therefore, anyone who chooses to be a friend of the world becomes an enemy of God.
James 4:3-4 NIV