Solomon
Proverbs 23:9ESV·traditional attribution

Do not speak in the hearing of a fool, for he will despise the good sense of your words.

Matthew Henry Presbyterian @wholebiblehenry

We are here directed not to cast pearls before swine (Mat 7:6) and not to expose things sacred to the contempt and ridicule of profane scoffers. It is our duty to take all fit occasions to speak of divine things; but, 1.

John Gill Reformed Baptist @doctorgill

Speak not in the ears of a fool,.... For it is only beating the air, and speaking to the wind; it is casting pearls before swine, and that which is holy to dogs. By the "fool" is meant a wicked man, one abandoned to sin, and hardened in it; that scoffs at all admonitions and reproofs, that derides the word, and the preachers of it...

Jamieson-Fausset-Brown Reformed @jfbcommentary

(Compare Pro 9:8). "Cast not your pearls before swine" (Mat 7:6).