It's called the Finn Sword. Basically, in the episode where Prismo is brought back to life, there's some time travel involved, and Finn causes a time paradox, causing a past version of himself to somehow turn into a sword. It had a cameo at the end of this episode, when Finn saw the vision of Bubblegum.