Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tirmidhi:1354Qutaybah And ʾAḥmad b. Manīʿ al-Maʿná Wāḥid > Hushaym > ʿAbdullāh b. Abū Ṣāliḥ from his father > Abū Hurayrah

“The oath is based upon what will make your companion believe you.” [Qutaibah (one of the narrators) said: “ What will make you believed by your companion”]  

الترمذي:١٣٥٤حَدَّثَنَا قُتَيْبَةُ وَأَحْمَدُ بْنُ مَنِيعٍ الْمَعْنَى وَاحِدٌ قَالاَ حَدَّثَنَا هُشَيْمٌ عَنْ عَبْدِ اللَّهِ بْنِ أَبِي صَالِحٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ الْيَمِينُ عَلَى مَا يُصَدِّقُكَ بِهِ صَاحِبُكَ وَقَالَ قُتَيْبَةُ عَلَى مَا صَدَّقَكَ عَلَيْهِ صَاحِبُكَ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ حَسَنٌ غَرِيبٌ لاَ نَعْرِفُهُ إِلاَّ مِنْ حَدِيثِ هُشَيْمٍ عَنْ عَبْدِ اللَّهِ بْنِ أَبِي صَالِحٍ وَعَبْدُ اللَّهِ بْنُ أَبِي صَالِحٍ هُوَ أَخُو سُهَيْلِ بْنِ أَبِي صَالِحٍ وَالْعَمَلُ عَلَى هَذَا عِنْدَ بَعْضِ أَهْلِ الْعِلْمِ وَبِهِ يَقُولُ أَحْمَدُ وَإِسْحَاقُ وَرُوِيَ عَنْ إِبْرَاهِيمَ النَّخَعِيِّ أَنَّهُ قَالَ إِذَا كَانَ الْمُسْتَحْلِفُ ظَالِمًا فَالنِّيَّةُ نِيَّةُ الْحَالِفِ وَإِذَا كَانَ الْمُسْتَحْلِفُ مَظْلُومًا فَالنِّيَّةُ نِيَّةُ الَّذِي اسْتَحْلَفَ

See similar narrations below:

Collected by Muslim
muslim:1653aYaḥyá b. Yaḥyá And ʿAmrw al-Nāqid > Yaḥyá > Hushaym b. Bashīr > ʿAbdullāh b. Abū Ṣāliḥ > ʿAmr > Hushaym b. Bashīr > ʿAbdullāh b. Abū Ṣāliḥ from his father > Abū Hurayrah

Your oath should be about something regarding which your companion will believe you. 'Amr said: By which your companion will believe you.  

مسلم:١٦٥٣aحَدَّثَنَا يَحْيَى بْنُ يَحْيَى وَعَمْرٌو النَّاقِدُ قَالَ يَحْيَى أَخْبَرَنَا هُشَيْمُ بْنُ بَشِيرٍ عَنْ عَبْدِ اللَّهِ بْنِ أَبِي صَالِحٍ وَقَالَ عَمْرٌو حَدَّثَنَا هُشَيْمُ بْنُ بَشِيرٍ أَخْبَرَنَا عَبْدُ اللَّهِ بْنُ أَبِي صَالِحٍ عَنْ أَبِيهِ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ يَمِينُكَ عَلَى مَا يُصَدِّقُكَ عَلَيْهِ صَاحِبُكَ وَقَالَ عَمْرٌو يُصَدِّقُكَ بِهِ صَاحِبُكَ