Berachot 17a

The purpose of wisdom is to bring about repentance and good deeds.