Anas b. Malik (Allah be pleased wish him) reported that Messenger of Allah ﷺ came to Mina; he went to the Jamra and threw pebbles at it, after which he went to his lodging in Mina, and sacrificed the animal. He then called for a barber and, turning his right side to him, let him shave him; after which he tiimed his left side. He then gave (these hair) to the people. (Using translation from Muslim 1305a)
أَنَّ رَسُولَ اللهِ ﷺ أَتَى مِنًى فَأَتَى الْجَمْرَةَ فَرَمَاهَا ثُمَّ أَتَى مَنْزِلَهُ بِمِنًى وَنَحَرَ ثُمَّ قَالَ لِلْحَلَّاقِ خُذْ وَأَشَارَ إِلَى جَانِبِهِ الْأَيْمَنِ ثُمَّ الْأَيْسَرِ ثُمَّ جَعَلَ يُعْطِيهِ النَّاسَ