Hadithcore
Mishkat al-Masabih, 89
graded· Zubair `Aliza'i

‘Abdallah b. ‘Amr reported God’s messenger as saying, “The hearts of all men are between two of the Compassionate’s fingers as if they were one heart which He turns about as He wills.” Then God’s messenger said, “O God, who turnest the hearts, turn our hearts to Your obedience!” Muslim transmitted it.

وَعَنْ عَبْدِ اللَّهِ بْنِ عَمْرِو بْنِ الْعَاصِ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «يَقُول إِنَّ قُلُوبَ بَنِي آدَمَ كُلِّهَا بَيْنَ أُصْبُعَيْنِ من أَصَابِع الرَّحْمَن كقلب وَاحِد يصرفهُ حَيْثُ يَشَاءُ ثُمَّ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ الله مُصَرِّفَ الْقُلُوبِ صَرِّفْ قُلُوبَنَا عَلَى طَاعَتِكَ» . رَوَاهُ مُسلم

References1 variant
In-Book Reference
Book 1, Hadith 83