Ibn Atik narrates from his father that the Messenger of Allah (peace and blessings be upon him) said: "Among jealousy is that which Allah loves and that which Allah dislikes. That which Allah loves is jealousy where there is cause for suspicion, and that which Allah dislikes is jealousy without cause. Among pride, that which Allah loves is a man's taking pride in himself at the time of fighting, and that which Allah dislikes is taking pride in oppression and wickedness."
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 1761