Sahih Muslim
The Book of Virtue, Good Manners and Joining of the Ties of Relationship (Kitab Al-Birr was-Salat-I-wal-Adab)
Book Number: 032 / Hadith Number: 6333
Jabir reported that Allah's Messenger (may peace be upon him) 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.