Happiness can be attained only if the mind is turned towards God.
If the mind is turned towards the world, then life would become painful.
Take a hand-fan and move it towards you; then the breeze will come towards you.
If, however, you move the fan away from you, how can you get breeze?
In the same way, only if the mind is diverted towards God, can you get happiness.