The Messenger of Allah ﷺ forbade passing a sword to another person while it is unsheathed.
حدثنا وكيع عن حماد بن سلمة عن أبي الزبير
نهى رسول الله ﷺ أن يتعاطى السيف مسلولا
Its chain of transmission is sahih. It is found in Abu Dawud 3/70 no. 2588, in the chapter on jihad, on the prohibition of passing a sword while unsheathed. And Tirmidhi 4/403 no. 2163, in the chapter on tribulations, similarly, and he said, hasan gharib. Hakim graded it sahih 4/290, and Dhahabi agreed with him.