Among the conditions that the people of Mecca imposed on the Messenger of Allah ﷺ was that none of his companions could enter the city bearing weapons, except for weapons sheathed in their scabbards.
حدثنا هشيم أخبرنا الحجاج عن أبي إسحاق
كان فيما اشترط أهل مكة على رسول الله ﷺ أن لا يدخلها أحد من أصحابه بسلاح إلا سلاح في قراب