كتاب الأيمان
27  
The Book of Oaths
(1)
Chapter: The prohibition of swearing by something other than Allah
(1)
باب النَّهْىِ عَنِ الْحَلِفِ بِغَيْرِ اللَّهِ تَعَالَى ‏‏
Sahih Muslim 1646 b

This hadith has been transmitted on the authority of Zuhri except that in the hadith narrated on the authority of Uqail the words are:

" I did not take oath by (anyone else except Allah) since I heard Allah's Messenger forbidding it. nor did I speak in such terms, and the narrator did not say," on my own behalf or on behalf of someone else".
وَحَدَّثَنِي عَبْدُ الْمَلِكِ بْنُ شُعَيْبِ بْنِ اللَّيْثِ، حَدَّثَنِي أَبِي، عَنْ جَدِّي، حَدَّثَنِي عُقَيْلُ بْنُ، خَالِدٍ ح وَحَدَّثَنَا إِسْحَاقُ بْنُ إِبْرَاهِيمَ، وَعَبْدُ بْنُ حُمَيْدٍ، قَالاَ حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، كِلاَهُمَا عَنِ الزُّهْرِيِّ، بِهَذَا الإِسْنَادِ ‏.‏ مِثْلَهُ غَيْرَ أَنَّ فِي حَدِيثِ عُقَيْلٍ مَا حَلَفْتُ بِهَا مُنْذُ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَنْهَى عَنْهَا وَلاَ تَكَلَّمْتُ بِهَا ‏.‏ وَلَمْ يَقُلْ ذَاكِرًا وَلاَ آثِرًا ‏.‏
Reference : Sahih Muslim 1646b
In-book reference : Book 27, Hadith 2
USC-MSA web (English) reference : Book 15, Hadith 4036
  (deprecated numbering scheme)