Muwatta Malik, Book 20, Hadith 99 (USC-MSA) ⓘ
Yahya related to me that Malik said, "Someone whose passage to the House is blocked by an enemy is freed from every restriction of ihram, and should sacrifice his animal and shave his head wherever he has been detained, and there is nothing for him to make up afterwards." Yahya related to me from Malik that he had heard that when the Messenger of Allah, may Allah bless him and grant him peace, and his companions came out of ihram at al-Hudaybiya they sacrificed their sacrificial animals and shaved their heads, and were freed from all the restrictions of ihram without having done tawaf of the House and without their sacrificial animals reaching the Kaba. There is nothing known about the Messenger of Allah, may Allah bless him and grant him peace, ever telling any of his companions, or anybody else that was with him, to make up for anything they had missed or to go back to doing anything they had not finished doing.