Mishkat al-Masabih
Ibn ‘Abbas said that God’s messenger had been detained, so he had his head shaved, had intercourse with his wives, and sacrificed his animals. Then he performed the ’umra the following year. Bukhari transmitted it.
عَنِ ابْنِ عَبَّاسٍ قَالَ: قَدْ أُحْصِرَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَحَلَقَ رَأَسَهُ وَجَامَعَ نِسَاءَهُ وَنَحَرَ هَدْيَهُ حَتَّى اعْتَمَرَ عَامًا قَابلا. رَوَاهُ البُخَارِيّ
Reference