Narrated from Sayyiduna Abdullah bin Amr bin al-As (may Allah be pleased with them both) that the Messenger of Allah (ﷺ) stayed at Mina during the Farewell Pilgrimage so that people could ask questions. A man came and said, "I did not realize and I shaved my head before offering the sacrifice." The Prophet (ﷺ) said: "There is no harm, offer the sacrifice." Another man came and said, "O Messenger of Allah (ﷺ), I did not realize and I offered the sacrifice before throwing the pebbles." The Prophet (ﷺ) said: "There is no problem, now throw the pebbles." The narrator says that for whatever question was asked regarding precedence or delay (on the 10th of Dhul-Hijjah), the Prophet (ﷺ) said: «افعل ولا حرج» (Do it now, there is no harm).
Hadith Referenceالسنن المأثورة / باب ما جاء في فدية الأذى / 484
Hadith Takhrijصحیح بخاری، العلم، باب الفتیا وهو واقف علی الدابۃ، رقم: 83، صحیح مسلم، الحج، باب من حلق قبل النحر او نحر قبل الرمی رقم: 1306۔