From Sahih Muslim (Hadith 3164):
Ibn Abbas (Allah be pleased with them) reported that it was said to Allah's Apostle (ﷺ) about sacrificing of animals, shaving of one's head, throwing of pebbles, and (the order of) precedence and succession, and he said:There is no harm in it
Reference: Muslim 3164