Beneficial article on understanding the nafs:
and this will answer your question insha-allah:
Du'a:
اَللّٰهُمَّ اَلْهِمْنِىْ رُشْدِىْ وَاَعِذْنِىْ مِنْ شَرِّ نَفْسِىْ
Oh Allah, inspire me with guidance and protect me from the evil of myself
——–
اللهم ات نفسي تقواها وزكها انت خير من زكاها انت وليها ومولاها
Allahumma Aati Nafsi Taqwaahaa Wa-Zakkihaa, Anta Khayru Man Zakkaahaa, Anta Waliyyuhaa Wa-Mawlaahaa
O Allah! Give my soul piety and my conscience purity. You are the Master of my soul and the Guardian of my conscience