(1) باب إِذَا أُحْصِرَ الْمُعْتَمِرُ
Narrated Ibn `Abbas:
Allah's Messenger (ﷺ) was prevented from performing (`Umra) Therefore, he shaved his head and had sexual relations with his wives and slaughtered his Hadi and performed Umra in the following year.
Reference: Sahih al-Bukhari 1809
In-book reference: Book 27, Hadith 4
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 28, Hadith 36