Jabir reported that Allah's Messenger (ﷺ) commanded a person who had been distributing arrows freely in the mosque that he should not move about in the mosque but by catching hold of their iron-heads. Ibn Rumh narrated this with a slight variation of wording.
Reported by Muslim (No. 2614c), Abu Dawud (No. 2586) and Ahmad (No. 14254).
Abu Mūsa al-Ash‘ari (may Allah be pleased with him) reported that the Prophet (may Allah's peace and blessings be upon him) said: "Whoever passes through any of our mosques or markets with arrows with him, he should hold them by their heads (blades) lest he injures any of the Muslims with them."
وعنه قال: قال رسول الله صلى الله عليه وسلم : “من مر في شيء من مساجدنا، أو أسواقنا، ومعه نبل فليمسك، أو ليقبض على نصالها بكفه أن يصيب أحدًا من المسلمين منها بشيء” ((متفق عليه)) .