Sahih al-Bukhari #2679 · Witnesses

Sahih al-BukhariAbdullah ibn Masud
Sahih al-Bukhari · Book 52 · Witnesses
Sahih al-Bukhari · كتاب 52 · كتاب الشهادات
The Prophet (ﷺ) said, "Whoever has to take an oath should swear by Allah or remain silent." (i.e. He should not swear by other than Allah)
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا جُوَيْرِيَةُ، قَالَ ذَكَرَ نَافِعٌ عَنْ عَبْدِ اللَّهِ ـ رضى الله عنه ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏
"‏ مَنْ كَانَ حَالِفًا فَلْيَحْلِفْ بِاللَّهِ أَوْ لِيَصْمُتْ ‏"‏‏.‏
Reference : Sahih al-Bukhari 2679In-book reference : Book 52, Hadith 40