The bedrock of Jesus
Closing the Sermon on the Mount with this parable draws attention to the importance of exercising wisdom and discernment, building our lives on the bedrock of Jesus.
Some other useful verses that focus on wisdom and discernment:
Proverbs 1:7
The fear of the Lord is the beginning of knowledge; fools despise wisdom and instruction.
Proverbs 3:5-6
Trust in the Lord with all your heart, and do not lean on your own understanding. In all your ways acknowledge him, and he will make straight your paths.
James 1:5
If any of you lacks wisdom, let him ask God, who gives generously to all without reproach, and it will be given him.
1John 4:1
Beloved, do not believe every spirit, but test the spirits to see whether they are from God, for many false prophets have gone out into the world.
James 3:13-18
Who is wise and understanding among you? By his good conduct let him show his works in the meekness of wisdom. But if you have bitter jealousy and selfish ambition in your hearts, do not boast and be false to the truth. This is not the wisdom that comes down from above, but is earthly, unspiritual, demonic. For where jealousy and selfish ambition exist, there will be disorder and every vile practice. But the wisdom from above is first pure, then peaceable, gentle, open to reason, full of mercy and good fruits, impartial and sincere. And a harvest of righteousness is sown in peace by those who make peace.