Sahih al-Bukhari — Hadith 1776 (KitabGrid sequence)
Narrated Al-Bara:
حَدَّثَنَا عُبَيۡدُ اللَّهِ، عَنۡ إِسۡرَائِيلَ، عَنۡ أَبِي إِسۡحَاقَ، عَنِ الۡبَرَاءِ ـ رضى الله عنه ـ اعۡتَمَرَ النَّبِيُّ صلى الله عليه وسلم فِي ذِي الۡقَعۡدَةِ، فَأَبَى أَهۡلُ مَكَّةَ أَنۡ يَدَعُوهُ يَدۡخُلُ مَكَّةَ، حَتَّى قَاضَاهُمۡ لاَ يُدۡخِلُ مَكَّةَ سِلاَحًا إِلاَّ فِي الۡقِرَابِ.
Translation
Ubaydullah narrated to us, from Isra'il, from Abu Ishaq, from al-Bara' رضي الله تعالى عنه:
The Prophet صلى الله عليه وآله وسلم undertook Umrah in Dhu al-Qa'dah. The people of Makkah refused to let him enter Makkah until he made an agreement with them that he would enter Makkah with weapons only in their sheaths.