[Machine] The Messenger of Allah used to frequently supplicate, saying, "O Allah, the Turner of hearts, make my heart steadfast upon Your religion." I asked, "O Messenger of Allah, do hearts really change?" He replied, "Yes, indeed. There is no person from the offspring of Adam except that their heart is between two of the fingers of Allah. If He wills, He keeps it firm, and if He wills, He deviates it. So, we ask Allah, our Lord, not to let our hearts deviate after He has guided us, and we ask Him to bestow upon us from His mercy, for He is the Bestower." I asked, "O Messenger of Allah, can you teach me a supplication that I can make for myself?" He said, "Certainly, say, 'O Allah, Lord of Muhammad, forgive my sins and remove the anger from my heart and protect me from the misguidance of trials as long as You keep me alive.'"
أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُكْثِرُ فِي دُعَائِهِ أَنْ يَقُولَ اللهُمَّ مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِي عَلَى دِينِكَ قَالَتْقُلْتُ يَا رَسُولَ اللهِ أَوَ إِنَّ الْقُلُوبَ لَتَتَقَلَّبُ؟ قَالَ نَعَمْ مَا مِنْ خَلْقِ اللهِ مِنْ بَنِي آدَمَ مِنْ بَشَرٍ إِلَّا أَنَّ قَلْبَهُ بَيْنَ أُصْبُعَيْنِ مِنْ أَصَابِعِ اللهِ فَإِنْ شَاءَ اللهُ ﷻ أَقَامَهُ وَإِنْ شَاءَ أَزَاغَهُ فَنَسْأَلُ اللهَ رَبَّنَا أَنْ لَا يُزِيغَ قُلُوبَنَا بَعْدَ إِذْ هَدَانَا وَنَسْأَلُهُ أَنْ يَهَبَ لَنَا مِنْ لَدُنْهُ رَحْمَةً إِنَّهُ هُوَ الْوَهَّابُ قَالَتْ قُلْتُ يَا رَسُولَ اللهِ أَلَا تُعَلِّمُنِي دَعْوَةً أَدْعُو بِهَا لِنَفْسِي؟ قَالَ بَلَى قُولِي اللهُمَّ رَبَّ النَّبِيِّ مُحَمَّدٍ اغْفِرْ لِي ذَنْبِي وَأَذْهِبْ غَيْظَ قَلْبِي وَأَجِرْنِي مِنْ مُضِلَّاتِ الْفِتَنِ مَا أَحْيَيْتَنَا