Let not the heart be troubled
Here’s what it means
Do not surrender inwardly to fear, distress, or despair.
Why the Bible says it this way
Jesus is not forbidding all emotion; he is directing his disciples to trust God in the coming crisis.
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.