From YOUCAT, fact 282:
282: Does Sacred Scripture speak about a way to happiness?
We become happy by trusting in Jesus’ words in the Beatitudes. [1716-1717]
The Gospel is a promise of happiness to all people who wish to walk in God’s ways. Especially in the Beatitudes (Mt 5:3-12), Jesus has told us specifically that eternal blessedness is based on our following his example and seeking peace with a pure heart.