Assalamualaikum sir, please help me to stay away from vanity(ghamand),and arrogance (takabbur).I mean is there any dua or Amal to stay away from these sins.

Try to be in the state of wudhu all the times and say اعوذبالله من الشيطان الرجيم
As often as possible
Recite following Aayat after every prayer
Holy Quran 45:37
وَلَهُ الْكِبْرِيَاءُ فِي السَّمَاوَاتِ وَالْأَرْضِ ۖ وَهُوَ الْعَزِيزُ الْحَكِيمُ

And to Him belongs [all] grandeur within the heavens and the earth, and He is the Exalted in Might, the Wise.