عَنْ مُحَمَّدِ بْنِ إِبْرَاهِيمَ أَنَّ ابْنَ جَابِرِ بْنِ عَتِيكٍ حَدَّثَهُ عَنْ أَبِيهِ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ إِنَّ مِنَ الْغَيْرَةِ مَا يُحِبُّ اللَّهُ وَمِنْهَا مَا يُبْغِضُ اللَّهُ وَمِنَ الْخُيَلَاءِ مَا يُحِبُّ اللَّهُ وَمِنْهَا مَا يُبْغِضُ اللَّهُ فَالْغَيْرَةُ الَّتِي يُحِبُّ اللَّهُ الْغَيْرَةُ فِي الرِّيبَةِ وَالْغَيْرَةُ الَّتِي يُبْغِضُ اللَّهُ الْغَيْرَةُ فِي غَيْرِ رِيبَةٍ وَالْخُيَلَاءُ الَّتِي يُحِبُّ اللَّهُ اخْتِيَالُ الْعَبْدِ بِنَفْسِهِ لِلَّهِ عِنْدَ الْقِتَالِ وَاخْتِيَالُهُ بِالصَّدَقَةِ وَالْخُيَلَاءُ الَّتِي يُبْغِضُ اللَّهُ الْخُيَلَاءُ فِي الْفَخْرِ وَالْكِبْرِ أَوْ كَالَّذِي قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ
It is narrated from Sayyiduna Jabir bin Atik (may Allah be pleased with him), the Noble Prophet (peace and blessings be upon him) said: Allah Almighty likes some forms of jealousy and dislikes some, similarly, He likes some types of pride and dislikes some. The jealousy that He likes is related to suspicion (of immorality), and the jealousy that He dislikes is when there is no suspicion or assumption. Likewise, the pride that Allah Almighty likes is when a servant takes pride in himself for Allah’s sake at the time of fighting, and takes pride in giving charity, and the pride that He dislikes is related to arrogance.