Sahih al-Bukhari 452
Sahih al-Bukhari · Book 8: Prayers (Salat) · Passing through the mosque (is permissible)
Narrated Abu Burda bin `Abdullah:
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ ، قَالَ حَدَّثَنَا عَبْدُ الْوَاحِدِ ، قَالَ حَدَّثَنَا أَبُو بُرْدَةَ بْنُ عَبْدِ اللَّهِ ، قَالَ سَمِعْتُ أَبَا بُرْدَةَ ، عَنْ أَبِيهِ ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " مَنْ مَرَّ فِي شَىْءٍ مِنْ مَسَاجِدِنَا أَوْ أَسْوَاقِنَا بِنَبْلٍ، فَلْيَأْخُذْ عَلَى نِصَالِهَا، لاَ يَعْقِرْ بِكَفِّهِ مُسْلِمًا " .
(on the authority of his father) The Prophet (ﷺ) said, "Whoever passes through our mosques or markets with arrows should hold them by their heads lest he should injure a Muslim."