كتاب الحج
15  
The Book of Pilgrimage
(33)
Chapter: It is permissible for the pilgrim performing Umrah to shorten his hair and he does not have to shave it. It is recommended for him to shave his hair or shorten it at Al-Marwah
(33)
باب التَّقْصِيرِ فِي الْعُمْرَةِ ‏
Sahih Muslim 1248

jibir and Abil Salld al-Khudri (Allah be pleased with them) reported:

We went with Allah's Apostle (ﷺ) and we were pronouncing Talbiya for Hajj loudly.
وَحَدَّثَنَا حَجَّاجُ بْنُ الشَّاعِرِ، حَدَّثَنَا مُعَلَّى بْنُ أَسَدٍ، حَدَّثَنَا وُهَيْبُ بْنُ خَالِدٍ، عَنْ دَاوُدَ، عَنْ أَبِي نَضْرَةَ، عَنْ جَابِرٍ، وَعَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ، - رضى الله عنهما - قَالاَ قَدِمْنَا مَعَ النَّبِيِّ صلى الله عليه وسلم وَنَحْنُ نَصْرُخُ بِالْحَجِّ صُرَاخًا ‏.‏
Reference : Sahih Muslim 1248
In-book reference : Book 15, Hadith 232
USC-MSA web (English) reference : Book 7, Hadith 2873
  (deprecated numbering scheme)