(28) The Book of Oaths, Muharibin, Qasas (Retaliation), and Diyat (Blood Money)
كتاب القسامة والمحاربين والقصاص والديات
(6) Chapter: When it is permissible to shed the blood of a muslim
(6) باب مَا يُبَاحُ بِهِ دَمُ الْمُسْلِمِ ‏‏
Sahih Muslim 1676 d 

This hadith has been reported on the authority of A'mash with the same chain of narrators but with a slight variation of words, i. e. he did not say:

By Him besides Whom there is no god.
وَحَدَّثَنِي حَجَّاجُ بْنُ الشَّاعِرِ، وَالْقَاسِمُ بْنُ زَكَرِيَّاءَ، قَالاَ حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى، عَنْ شَيْبَانَ، عَنِ الأَعْمَشِ، بِالإِسْنَادَيْنِ جَمِيعًا ‏.‏ نَحْوَ حَدِيثِ سُفْيَانَ وَلَمْ يَذْكُرَا فِي الْحَدِيثِ قَوْلَهُ ‏ "‏ وَالَّذِي لاَ إِلَهَ غَيْرُهُ ‏"‏ ‏.‏
Reference : Sahih Muslim 1676d
In-book reference : Book 28, Hadith 37
USC-MSA web (English) reference : Book 16, Hadith 4155
  (deprecated numbering scheme)