This verse penned by the wisest king in history, King Solomon, certainly flies in the face of the wisdom of our age. For us, our happiness is often the highest virtue. We seek pleasure, fun, toys, "stuff".
But it appears the Lord sees things differently. It seems He is more concerned with our humility and obedience more than our pride and happiness.