Waalaikumussalam warahmatullahi wabarakatuh My friend.
It's true what you say, wealth does not guarantee someone can be happy, because happiness is in the soul.
The way to be happy is to be grateful. Even though we are not rich, being grateful means we have had enough.
Many people are rich but they have never had enough, so they are never happy.
Wassalamu'alaikum
Thank you.