كتاب الحج
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 1246 b

Ibn Abbis (Allah be pleased with him) reported that Mu'awiya b. Abu Safyin had told him:

I clipped the hair (from the head of) Allah's Messenger (may peace he upon him) with a clipper while he was at al-Marwa, or I saw him getting his hair clipped with a clipper as he was at al-Marwa. 1722
وَحَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمٍ، حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، عَنِ ابْنِ جُرَيْجٍ، حَدَّثَنِي الْحَسَنُ، بْنُ مُسْلِمٍ عَنْ طَاوُسٍ، عَنِ ابْنِ عَبَّاسٍ، أَنَّ مُعَاوِيَةَ بْنَ أَبِي سُفْيَانَ، أَخْبَرَهُ قَالَ قَصَّرْتُ عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم بِمِشْقَصٍ وَهُوَ عَلَى الْمَرْوَةِ أَوْ رَأَيْتُهُ يُقَصَّرُ عَنْهُ بِمِشْقَصٍ وَهُوَ عَلَى الْمَرْوَةِ ‏.‏
Reference : Sahih Muslim 1246b
In-book reference : Book 15, Hadith 230
USC-MSA web (English) reference : Book 7, Hadith 2871
  (deprecated numbering scheme)