Jami` at-Tirmidhi, Book 9, Hadith 106 (Tirmidhi 914)

Ibn Umar narrated that:

The Messenger of Allah said: "May Allah have mercy upon those who shaved" saying it one or two times, then he said: "And those who shortened."