Lay or take something to heart
Here’s what it means
To consider it deeply and allow it to affect one's decisions.
Why the Bible says it this way
The expression asks for more than hearing facts; it calls for serious inward response.
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.