Bulugh al-Maram, Book 6, Hadith 784 (English)

Ibn ’Umar (RAA) narrated that the Messenger of Allah said: “May Allah bless those who shaved." The Companions asked him, ‘O Allah’s Messenger, what about those who cut their hair short?’ They repeated their question twice (and each time he repeated his saying, ‘May Allah bless those who shaved.’) On the third time, the Messenger of Allah then said, “And (may Allah bless) those who cut their hair short." Agreed upon.

وَعَنْـ [ ـهُ ] ; 1‏ { أَنَّ رَسُولَ اَللَّهِ ‏- صلى الله عليه وسلم ‏-قَالَ: " اَللَّهُمَّ ارْحَمِ اَلْمُحَلِّقِينَ " قَالُوا: وَالْمُقَصِّرِينَ يَا رَسُولَ اَللَّهِ.‏ قَالَ فِي اَلثَّالِثَةِ: " وَالْمُقَصِّرِينَ " } مُتَّفَقٌ عَلَيْهِ 2‏.‏ ‏1 ‏- والزيادة سقطت من " أ ".‏‏2 ‏- صحيح.‏ رواه البخاري ( 1727 )‏، ومسلم ( 1301 )‏.‏

sunnah.com

also referenced under: Book 6, Hadith 57 (In-Book)