Honor with lips while heart is far away
Here’s what it means
To give outward religious words without genuine inward devotion.
Why the Bible says it this way
The mouth appears close to God, but the person's true loyalty is pictured as far distant.
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.