(27) The Book of Oaths
كتاب الأيمان
(4) Chapter: An oath is judged on the intention of the one who asks for it to be sworn.
(4) باب يَمِينِ الْحَالِفِ عَلَى نِيَّةِ الْمُسْتَحْلِفِ ‏‏
Sahih Muslim 1653 a 

Abu Haraira reported Allah's Messenger (ﷺ) as saying:

Your oath should be about something regarding which your companion will believe you. 'Amr said: By which your companion will believe you.
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى، وَعَمْرٌو النَّاقِدُ، - قَالَ يَحْيَى أَخْبَرَنَا هُشَيْمُ بْنُ بَشِيرٍ، عَنْ عَبْدِ اللَّهِ بْنِ أَبِي صَالِحٍ، وَقَالَ، عَمْرٌو حَدَّثَنَا هُشَيْمُ بْنُ بَشِيرٍ، أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ أَبِي صَالِحٍ، - عَنْ أَبِيهِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ يَمِينُكَ عَلَى مَا يُصَدِّقُكَ عَلَيْهِ صَاحِبُكَ ‏"‏ ‏.‏ وَقَالَ عَمْرٌو ‏"‏ يُصَدِّقُكَ بِهِ صَاحِبُكَ ‏"‏ ‏.‏
Reference : Sahih Muslim 1653a
In-book reference : Book 27, Hadith 30
USC-MSA web (English) reference : Book 15, Hadith 4064
  (deprecated numbering scheme)