Sow one’s wild oats

To do wild and foolish things in one’s youth.

The man sowed his wild oats when he was a young man.