Bara bin Azib reported,

The Prophet ﷺ performed Umrah in the month of Dhul-Qadah, but the people of Makkah refused to let him enter Makkah until he agreed with them that he would not bring any weapons into Makkah except sheathed in their scabbards.

Bukhari 1844

Sahih

حدثنا عبيد الله عن إسرائيل عن أبي إسحاق

عن البراء رضي الله عنه

اعتمر النبي ﷺ في ذي القعدة فأبى أهل مكة أن يدعوه يدخل مكة حتى قاضاهم لا يدخل مكة سلاحا إلا في القراب

البخاري 1844صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Game animal penalties
Chapter
Wearing weapons for one in Muharram
Numbering
Darussalam 1844
Bukhari 1844