Abdullah bin Abbas reported,

The Messenger of Allah ﷺ was prevented from completing his pilgrimage, so he shaved his head, was intimate with his wives, and slaughtered his sacrificial animal, until he performed Umrah the following year.

Bukhari 1809

Sahih

حدثنا محمد قال حدثنا يحيى بن صالح حدثنا معاوية بن سلام حدثنا يحيى بن أبي كثير عن عكرمة قال قال

ابن عباس رضي الله عنهما

قد أحصر رسول الله ﷺ فحلق رأسه وجامع نساءه ونحر هديه حتى اعتمر عاما قابلا

البخاري 1809صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Confined person
Chapter
If the pilgrim performing umrah is prevented
Numbering
Darussalam 1809
Bukhari 1809