Baltasar Gracián said this quote

For the advice in a joke is sometimes more useful than the most serious teaching.