Veteran's Cane

From Xanathar's Guide to Everything, page 139.

Description
Wondrous item, common.

When you grasp this walking cane and use a bonus action to speak the command word, it transforms into an ordinary longsword and ceases to be magical.