The Buddha said "You are the owner of your kamma, the heir of your kamma; you have kamma as your origin, kamma as your relative, kamma as your resort; you will be the heir of whatever kamma, good or bad, that you do".
Kamma = actions (volition)
So perform wholesome actions to have wholesome fruits. Goodness leads to happiness.