Discuss as:

Iran releases US hikers Shane Bauer and Josh Fattal

Jumana El-Heloueh / Reuters

Shane Bauer, one of the U.S. hikers who was held in Iran on charges of espionage, hugs fiance Sarah Shourd upon his arrival in Muscat after his release from Tehran's Evin prison, Wednesday, Sept. 21, 2011.

NBC News

Josh Fattal, left, and Shane Bauer, right after their release today.

NBC News

US hikers Shane Bauer and Josh Fattal bound down the stairs off the airplane that delivered them to Oman, Jordan on Wednesday, Sept. 21.

The lawyer for two Americans jailed as spies in Iran says a $1 million bail-for-freedom deal has been approved by the courts, clearing the way for the release of the men after more than two years in custody.

The Iranian attorney for the two, Masoud Shafiei, said he planned to go to Tehran's Evin prison to begin the procedure for the release of Shane Bauer and Josh Fattal, both 29.

Earlier, Shafiei told Reuters that he had obtained the "necessary signatures from judiciary officials for their release."

Bauer and Fattal were arrested along the Iran-Iraq border in July 2009 and each were sentenced last month to eight years in prison. A third American in the group, Sarah Shourd, was freed last year on bail.

Shane Bauer and Josh Fattal, two American hikers who were convicted of espionage in Iran and jailed for two years, arrive in Oman. Msnbc's Richard Lui reports.

Read more in our full story.