How can one rid himself from the evils of the heart such pride and arrogance?
One needs to learn more about Allah and about His attributes, and to know that Allah the Exalted said in a hadeeth Qudsi (a narration from Allah himself):
“قَالَ اللَّهُ عَزَّ وَجَلَّ الْكِبْرِيَاءُ رِدَائِي وَالْعَظَمَةُ إِزَارِي فَمَنْ
نَازَعَنِي وَاحِدًا مِنْهُمَا قَذَفْتُهُ فِي النَّارِ”
“Pride is my cloak and greatness is my garment, so whoever competes with me regarding one of these two will be thrown into the Hellfire.”
Prophet Muhammad, may Allah exalt his mention and grant him safety, said:
“و قال صلى الله عليه و سلم
يحشر المتكبرين يوم القيامة أمثال الذر تطأهم الناس بأقدامهم.”
“The arrogant people, they will be assembled on the Day of the Judgment as the small red ants with the image of men, people would step on them with their feet.”
Finally, my advice is to read the Quran, its explanation (tafseer) and the books of Imam Ibn Al Qayyim.