Energy in a spring system

A mass connected to a horizontal spring sits on a frictionless table. The mass is moved to compress the spring, and the system is released from rest. What happens to the energy initially stored in the spring?