Speedometer Cable

Not exactly sure which end is on that cable, if it's the push on clip type it should be fairly easy to get it back on.

What may have happened, when you pushed it on it forced the cable into the sheath instead of the end of it going into the speedo drive. They can be a booger to get hooked up correctly, not a whole lot of room to get in there.