In all our actions, God considers the intention: whether we act for Him or for some other motive.