Dua for good character
وَاهْدِنِي لِأَحْسَنِ الْأَخْلَاقِ، لَا يَهْدِي لِأَحْسَنِهَا إِلَّا أَنْتَ، وَاصْرِفْ عَنِّي سَيِّئَهَا، لَا يَصْرِفُ عَنِّي سَيِّئَهَا إِلَّا أَنْتَ
Wa’hdinī li-aḥsani’l-akhlāq, lā yahdī li-aḥsanihā illā ant, wa’ṣrif ʿannī sayyi’ahā, lā yaṣrifu ʿannī sayyi’ahā illā ant.
“And guide me to the best of character, for none guides to the best of it but You; and turn away from me its evil, for none turns its evil away from me but You.”
When to say it
Said when asking Allah for good character. In the Sunnah it is a passage of the supplication that opens the prayer, in the middle of it — hence the "and" it begins with.
Virtue & benefit
The Prophet ﷺ would say it in his prayer, tying good character directly to Allah's guidance and asking Him to remove bad conduct.
Source
Ṣaḥīḥ Muslim (771), from ʿAlī ibn Abī Ṭālib. These words are a passage of the long supplication the Prophet ﷺ said when he stood for the prayer ("Wajjahtu wajhiya…"); in the narration they begin with "wa" (and), not with "Allāhumma".
Frequently asked
What dua improves your character?
"Wa’hdinī li-aḥsani’l-akhlāq…", which the Prophet ﷺ said in prayer, asking Allah to guide him to the best manners and turn bad ones away.
Where did the Prophet ﷺ say this dua for good character?
It is part of the supplication he said when he stood for the prayer (istiftāḥ), reported in Ṣaḥīḥ Muslim (771).
Make this dua a daily habit
SABR helps you memorise and retain your everyday duas with spaced repetition — so the words are ready on your tongue when you need them.