Wisdom gives understanding of what true gain is and what only masquerades as gain, and it does so by having us conduct our lives according to righteousness. Wisdom and righteousness have been closely linked by God so that we cannot have one without the other.
If you or me live as Christians who are shortchanging the Lord, cheating, indulging in sins that we ought not to be indulging in, doing things secretly and on the quiet, not dedicated to him, not earnest, then that life will do you no good at all in your home. Here is the farm, here is the father instructing the sons and raising the sons. One of the sons is cheating, sneaking out from the farm and getting up to all kinds of mischief. Well, what good will that do him, there are things he cannot tell the folks at home, he cannot share with them, he has to live a kind of double life, and he is suspected of it, and people become aware of it. If a believer foolishly is in any way drawn aside into some semi-backslidden state, cheating the Lord, indulging in this worldly pursuit, it will not ultimately give him any happiness. It is a foolish thing to do, because it is like the useless stolen treasures that has to be buried, and cannot be brought out because that would lead to his detection. You have got to lead a double life. It means that your prayer answering Heavenly Father will hid His face from you. You will be a misfit in your spiritual home. Sometimes especially younger Christians will think, why cannot I do this? And somehow, the devil gets into them, and they begin to resent the fact that they cannot have certain worldly pleasures. But here is Solomon in his usual sympathetic way as it were saying, my son, do not be so silly. Apart from the sinfulness of it, look what it is going to do to you. You cannot let your fellow believers know you are into that, you have got to keep it secret, you have got to play the hypocrite.