It is narrated from Hazrat Jabir bin Atik (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: Some types of jealousy are beloved to Allah and some are disliked by Allah. Similarly, some types of pride are beloved to Allah and some are disliked. Thus, the jealousy that is beloved to Allah is in matters where there is a legitimate cause, and the disliked jealousy is that in which there is no aspect of doubt. And the pride that is beloved to Allah is when a person distinguishes himself for the sake of Allah’s pleasure at the time of fighting (in battle) and in giving charity and alms. (And the disliked pride is that which is only for boasting or rebellion.)