I got (my head) shaved before sacrificing the, animal, whereupon be (the Holy Prophet) said: Sacrifice the animal (now) ; there is no harm in it. He (the person said): I sacripced the animal before throwingpebbles. whereupon he said: Throw pebbles (now) ; there is no harm in it. (Using translation from Muslim 1306f)
سُئِلَ النَّبِيُّ ﷺ عَنْ رَجُلٍ حَلَقَ قَبْلَ أَنْ يَذْبَحَ قَالَ «اذْبَحْ وَلَا حَرَجَ» وَقَالَ آخَرُ ذَبَحْتُ قَبْلَ أَنْ أَرْمِيَ قَالَ «ارْمِ وَلَا حَرَجَ»