Solomon
Proverbs 9:12ESV·traditional attribution

If you are wise, you are wise for yourself; if you scoff, you alone will bear it.

Matthew Henry Presbyterian @wholebiblehenry

Wisdom is here introduced as a magnificent and munificent queen, very great and very generous; that Word of God is this Wisdom in which God makes known his goodwill towards men; God the Word is this Wisdom, to whom the Father has committed all judgment.

Commenting on Proverbs 9:1-12

John Gill Reformed Baptist @doctorgill

If thou be wise, thou shalt be wise for thyself,.... He is wise that harkens to Wisdom's advice, that obeys her call, turns in to her house, and becomes her guest; and such an one is wise for himself, it is for his own good, profit, and advantage; for the good of his soul, for his present peace and comfort, and for his future bliss and happiness.

Jamieson-Fausset-Brown Reformed @jfbcommentary

You are mainly concerned in your own conduct.