Nafi reported,

Abdullah and Salim both spoke to Abdullah bin Umar رضي الله عنهم, and he said, "We set out with the Prophet ﷺ intending to perform Umrah, but the disbelievers of Quraysh stood between us and the Kabah. So the Messenger of Allah ﷺ sacrificed his camels and shaved his head."

Bukhari 1812

Sahih

حدثنا محمد بن عبد الرحيم أخبرنا أبو بدر شجاع بن الوليد عن عمر بن محمد العمري قال

وحدث نافع

أن عبد الله وسالما كلما عبد الله بن عمر رضي الله عنهما فقال خرجنا مع النبي ﷺ معتمرين فحال كفار قريش دون البيت فنحر رسول الله ﷺ بدنه وحلق رأسه

البخاري 1812صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Confined person
Chapter
Slaughtering before shaving when prevented from completing pilgrimage
Numbering
Darussalam 1812
Bukhari 1812