Shaikh Ibraheem bin Adham (Allah have mercy on him) said,
There are three veils covering our hearts. Certitude (Yaqeen) does not develop until they are removed. They are,
1. Being happy with what we have.
2. Being sad for that which we do not have
3. Being happy when we are praised
(The reason is that) being happy with what we have is due to greed ( a blameworthy-trait) . Being sad for what we do not have is because of anger. Anger (is also a blame worthy trait that) results in punishment (from Allah). Whereas, being happy when we are praised is due to sense of high self regard (ujub). This ujub destroys the good actions.
Ahya al Uloom bab faqr o zuhd via