صحيح البخاري Sahih Bukhari كتاب الحج The Book of Hajj
بَابُ إِذَا رَمَى بَعْدَ مَا أَمْسَى أَوْ حَلَقَ قَبْلَ أَنْ يَذْبَحَ نَاسِيًا أَوْ جَاهِلاً:

(130) Chapter. If one did the Ramy of the Jamra after Maghrib (evening) or has his head shaved before slaughtering the Hady because of forgetfulness or ignorance.

2 hadith
Hadith 1734
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ ، حَدَّثَنَا وُهَيْبٌ ، حَدَّثَنَا ابْنُ طَاوُسٍ ، عَنْ أَبِيهِ ، عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا ، " أَنّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قِيلَ لَهُ : فِي الذَّبْحِ وَالْحَلْقِ وَالرَّمْيِ وَالتَّقْدِيمِ وَالتَّأْخِيرِ ، فَقَالَ : لَا حَرَجَ " .
Narrated Ibn `Abbas: The Prophet was asked about the slaughtering, shaving (of the head), and the doing of Rami before or after the due times. He said, "There is no harm in that."
Hadith Reference Sahih Bukhari / The Book of Hajj / Hadith: 1734
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 1735
حَدَّثَنَا عَلِيُّ بْنُ عَبْدِ اللَّهِ ، حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ ، حَدَّثَنَا خَالِدٌ ، عَنْ عِكْرِمَةَ ، عَنِ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا ، قَالَ : " كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُسْأَلُ يَوْمَ النَّحْرِ بِمِنًى ، فَيَقُولُ : لَا حَرَجَ ، فَسَأَلَهُ رَجُلٌ ، فَقَالَ : حَلَقْتُ قَبْلَ أَنْ أَذْبَحَ ؟ قَالَ : اذْبَحْ وَلَا حَرَجَ ، وَقَالَ : رَمَيْتُ بَعْدَ مَا أَمْسَيْتُ ؟ فَقَالَ : لَا حَرَجَ " .
Narrated Ibn `Abbas: The Prophet was asked (as regards the ceremonies of Hajj) at Mina on the Day of Nahr and he replied that there was no harm. Then a man said to him, "I got my head shaved before slaughtering." He replied, "Slaughter (now) and there is no harm in it." (Another) man said, "I did the Rami (of the Jimar) after midday." The Prophet replied, "There was no harm in it."
Hadith Reference Sahih Bukhari / The Book of Hajj / Hadith: 1735
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة