Language:
كتاب العلم
3  
Knowledge
(46)
Chapter: To ask about a religious matter and to give a religious verdict (at Mina during Hajj) while doing the Rami of Jimar (throwing of pebbles at the Jimar in Mina during Hajj)
(46)
باب السُّؤَالِ وَالْفُتْيَا عِنْدَ رَمْىِ الْجِمَارِ
Sahih al-Bukhari 124

Narrated `Abdullah bin `Ammar:

I saw the Prophet (ﷺ) near the Jamra and the people were asking him questions (about religious problems). A man asked, "O Allah's Messenger (ﷺ)! I have slaughtered the Hadi (animal) before doing the Rami." The Prophet (ﷺ) replied, "Do the Rami (now) and there is no harm." Another person asked, "O Allah's Messenger (ﷺ)! I got my head shaved before slaughtering the animal." The Prophet (ﷺ) replied, "Do the slaughtering (now) and there is no harm." So on that day, when the Prophet (ﷺ) was asked about anything as regards the ceremonies of Hajj performed before or after its due time his reply was, "Do it (now) and there is no harm."

حَدَّثَنَا أَبُو نُعَيْمٍ، قَالَ حَدَّثَنَا عَبْدُ الْعَزِيزِ بْنُ أَبِي سَلَمَةَ، عَنِ الزُّهْرِيِّ، عَنْ عِيسَى بْنِ طَلْحَةَ، عَنْ عَبْدِ اللَّهِ بْنِ عَمْرٍو، قَالَ رَأَيْتُ النَّبِيَّ صلى الله عليه وسلم عِنْدَ الْجَمْرَةِ وَهُوَ يُسْأَلُ، فَقَالَ رَجُلٌ يَا رَسُولَ اللَّهِ نَحَرْتُ قَبْلَ أَنْ أَرْمِيَ‏.‏ قَالَ ‏"‏ ارْمِ وَلاَ حَرَجَ ‏"‏‏.‏ قَالَ آخَرُ يَا رَسُولَ اللَّهِ حَلَقْتُ قَبْلَ أَنْ أَنْحَرَ‏.‏ قَالَ ‏"‏ انْحَرْ وَلاَ حَرَجَ ‏"‏‏.‏ فَمَا سُئِلَ عَنْ شَىْءٍ قُدِّمَ وَلاَ أُخِّرَ إِلاَّ قَالَ افْعَلْ وَلاَ حَرَجَ‏.‏
Reference : Sahih al-Bukhari 124
In-book reference : Book 3, Hadith 66
USC-MSA web (English) reference : Vol. 1, Book 3, Hadith 126
  (deprecated numbering scheme)