كتاب الحج
15  
The Book of Pilgrimage
(57)
Chapter: It is permissible to offer the sacrifice before stoning the Jamrah, or to shave before offering the sacrifice or stoning the Jamrah, or to perform Tawaf before any of them
(57)
باب مَنْ حَلَقَ قَبْلَ النَّحْرِ أَوْ نَحَرَ قَبْلَ الرَّمْىِ ‏‏
Sahih Muslim 1306 e

This hadith has been narrated on the authority of Ibn Juraij with the same chain of transmitters. And the narration of Ibn Bakr is like one transmitted by 'Isa but with this (variation):

" There are not these words in it: To all these three rites (throwing of pebbles sacrificing of animal and shaving of one's head)." And so far as the narration of Yahya al-Umawi (the words are): I got (my head) shaved before I sacrificed the animal, and I sacrified the animal before throwing pebbles, and like that.
وَحَدَّثَنَاهُ عَبْدُ بْنُ حُمَيْدٍ، حَدَّثَنَا مُحَمَّدُ بْنُ بَكْرٍ، ح وَحَدَّثَنِي سَعِيدُ بْنُ يَحْيَى الأُمَوِيُّ، حَدَّثَنِي أَبِي جَمِيعًا، عَنِ ابْنِ جُرَيْجٍ، بِهَذَا الإِسْنَادِ أَمَّا رِوَايَةُ ابْنِ بَكْرٍ فَكَرِوَايَةِ عِيسَى إِلاَّ قَوْلَهُ لِهَؤُلاَءِ الثَّلاَثِ ‏.‏ فَإِنَّهُ لَمْ يَذْكُرْ ذَلِكَ وَأَمَّا يَحْيَى الأُمَوِيُّ فَفِي رِوَايَتِهِ حَلَقْتُ قَبْلَ أَنْ أَنْحَرَ نَحَرْتُ قَبْلَ أَنْ أَرْمِيَ ‏.‏ وَأَشْبَاهَ ذَلِكَ ‏.‏
Reference : Sahih Muslim 1306e
In-book reference : Book 15, Hadith 364
USC-MSA web (English) reference : Book 7, Hadith 2999
  (deprecated numbering scheme)