When Replicators had taken over Thor's ship, the Beliskner in orbit above Earth, SG-1 beamed the SGC's Stargate on board the vessel and used it to escape the machines before the ship burned up in the atmosphere (3.22 "Nemesis Part 1").
P3X-234 was the planet Maj. Carter dialled as their refuge. As soon as they arrived at the planet, the injured Thor was beamed away in his stasis pod. Maj. Carter conjectured the pod was equipped with a locator beacon. Maj. Carter, Col. O'Neill, and Teal'c repeatedly dialled Earth to return home, but it was over a week before the SGC set up the second Antarctica Stargate and SG-1 could get a lock(4.01 "Small Victories Part 2").
When they returned, Teal'c was sporting a small goatee on his chin, but O'Neill warned Daniel not to touch it.