عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ قَالَ كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يُكْثِرُ أَنْ يَقُولَ يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِي عَلَى دِينِكَ فَقَالَ لَهُ أَصْحَابُهُ وَأَهْلُهُ يَا رَسُولَ اللَّهِ أَتَخَافُ عَلَيْنَا وَقَدْ آمَنَّا بِكَ وَبِمَا جِئْتَ بِهِ قَالَ إِنَّ الْقُلُوبَ بِيَدِ اللَّهِ عَزَّ وَجَلَّ يُقَلِّبُهَا
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) used to frequently supplicate: "O Turner of the hearts, keep my heart firm upon Your religion." The companions and family members of the Prophet (peace and blessings be upon him) said: "O Messenger of Allah! Do you fear for us, while we are with you and have believed in the Shari'ah you have brought?" The Prophet (peace and blessings be upon him) replied: "Indeed, the hearts are in the hand of Allah Almighty; He keeps turning them as He wills."