Motives can be everything
The Bible insists that God sees not just what we do but also why we do it
Example: Balaam spoke blessings on the Isreal three times but he was denounced in scripture as an evil man
Joshua tells us that the only reason Balaam didn't curse Israel was because God made hime speak blessings - Joshua 24
Balaam was considered a false teacher who:
Do you obey God from the heart? Do you find yourself doing the right thing for the right reasons?