Sahih al-Bukhari 2701
Muhammad bin Rafi' told us. Suraij bin Nu'man narrated to us that Fulaih told us. He narrated from Nafi', Nafi' from Hazrat Ibn Umar (ra), that the Messenger of Allah (saw) set out to perform Umrah. But the disbelievers of the Quraish put an obstacle between him and the House of Allah, and he (saw) slaughtered his sacrificial camels at Hudaibiyah and had the hair of his head shaved, and he settled with them that he would perform Umrah the following year and would not bring any weapon except swords, and would stay in Mecca only as long as they wished. So he performed Umrah the following year and entered Mecca in the way he had agreed with them. When he had stayed there for three days, the idolaters told him to leave, and he left.
AI-translated by Islam-Today