After the Enterprise-D entered asteroid gamma 601 to salvage the Pegasus, the Terix "accidentally" sealed the starship inside during some "geological experiments." The Terix offered to transport the crew of the Enterprise-D out, but the starship escaped on its own using the Pegasus's phasing cloaking device. (TNG: "The Pegasus")