Language:
كتاب الأيمان والنذور
83
Oaths and Vows
(15)
Chapter: If someone does something against his oath due to forgetfulness
(15)
بَابُ إِذَا حَنِثَ نَاسِيًا فِي الأَيْمَانِ
Sahih al-Bukhari 6666

Narrated Ibn `Abbas:

A man said to the Prophet (while he was delivering a sermon on the Day of Nahr), "I have performed the Tawaf round the Ka`ba before the Rami (throwing pebbles) at the Jamra." The Prophet (ﷺ) said, "There is no harm (therein)." Another man said, "I had my head shaved before slaughtering (the sacrifice)." The Prophet (ﷺ) said, "There is no harm." A third said, "I have slaughtered (the sacrifice) before the Rami (throwing pebbles) at the Jamra." The Prophet (ﷺ) said, "There is no harm."

حَدَّثَنَا أَحْمَدُ بْنُ يُونُسَ، حَدَّثَنَا أَبُو بَكْرٍ، عَنْ عَبْدِ الْعَزِيزِ بْنِ رُفَيْعٍ، عَنْ عَطَاءٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ قَالَ رَجُلٌ لِلنَّبِيِّ صلى الله عليه وسلم زُرْتُ قَبْلَ أَنْ أَرْمِيَ‏.‏ قَالَ ‏"‏ لاَ حَرَجَ ‏"‏‏.‏ قَالَ آخَرُ حَلَقْتُ قَبْلَ أَنْ أَذْبَحَ‏.‏ قَالَ ‏"‏ لاَ حَرَجَ ‏"‏‏.‏ قَالَ آخَرُ ذَبَحْتُ قَبْلَ أَنْ أَرْمِيَ‏.‏ قَالَ ‏"‏ لاَ حَرَجَ ‏"‏‏.‏
Reference : Sahih al-Bukhari 6666
In-book reference : Book 83, Hadith 44
USC-MSA web (English) reference : Vol. 8, Book 78, Hadith 659
  (deprecated numbering scheme)