Language:
كتاب العلم
3  
Knowledge
(24)
Chapter: Whoever gave a religious verdict by beckoning or by nodding
(24)
باب مَنْ أَجَابَ الْفُتْيَا بِإِشَارَةِ الْيَدِ وَالرَّأْسِ
Sahih al-Bukhari 84

Narrated Ibn `Abbas:

Somebody said to the Prophet (during his last Hajj), "I did the slaughtering before doing the Rami.' The Prophet (ﷺ) beckoned with his hand and said, "There is no harm in that." Then another person said. "I got my head shaved before offering the sacrifice." The Prophet (ﷺ) beckoned with his hand saying, "There is no harm in that."

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