From Sahih Bukhari (Hadith 1809):
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: Bukhari 1809