عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ قَالَ كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ يُكْثِرُ أَنْ يَقُولَ يَا مُقَلِّبَ الْقُلُوبِ ثَبِّتْ قَلْبِي عَلَى دِينِكَ فَقَالَ لَهُ أَصْحَابُهُ وَأَهْلُهُ يَا رَسُولَ اللَّهِ أَتَخَافُ عَلَيْنَا وَقَدْ آمَنَّا بِكَ وَبِمَا جِئْتَ بِهِ قَالَ إِنَّ الْقُلُوبَ بِيَدِ اللَّهِ عَزَّ وَجَلَّ يُقَلِّبُهَا
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 make this supplication: … “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, even though we have believed in you and in the Shari’ah you have brought? The Prophet (peace and blessings be upon him) replied: Indeed, all hearts are in the hand of Allah Almighty; He turns them as He wills.