He who loves wisdom makes his father glad, but a companion of prostitutes squanders his wealth.
Proverbs 29:3 ESV

Even the worst fathers, who encourage their sons to engage in all kinds of sin, are secretly proud of a son who prefers wisdom and godly behavior.