"The Messenger of Allah(s.a.w) prohibited passing an unsheathed sword."
Jami` at-Tirmidhi Book 33, Hadith 6