From Sahih Bukhari (Hadith 452):
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
Reference: Bukhari 452