Language:
كتاب القدر
82  
Divine Will (Al-Qadar)
(14)
Chapter: "... (Allah) comes in between a person and his heart"
(14)
باب يَحُولُ بَيْنَ الْمَرْءِ وَقَلْبِهِ
Sahih al-Bukhari 6617

Narrated `Abdullah:

When taking an oath, the Prophet (ﷺ) very often used to say, "No, by Him Who turns the hearts."

حَدَّثَنَا مُحَمَّدُ بْنُ مُقَاتِلٍ أَبُو الْحَسَنِ، أَخْبَرَنَا عَبْدُ اللَّهِ، أَخْبَرَنَا مُوسَى بْنُ عُقْبَةَ، عَنْ سَالِمٍ، عَنْ عَبْدِ اللَّهِ، قَالَ كَثِيرًا مِمَّا كَانَ النَّبِيُّ صلى الله عليه وسلم يَحْلِفُ ‏(‏لاَ وَمُقَلِّبِ الْقُلُوبِ‏)‏‏.‏
Reference : Sahih al-Bukhari 6617
In-book reference : Book 82, Hadith 23
USC-MSA web (English) reference : Vol. 8, Book 77, Hadith 614
  (deprecated numbering scheme)