How did cloud get his sword on Final Fantasy?

He got his Buster Sword from his friend, Zack Fair, who died before the events of FF7 itself, but is featured in Crisis Core.