NEW YORK (AP) -- Iranian President Mahmoud Ahmadinejad says two American hikers arrested and convicted on spy-related charges there could be freed "in a couple of days."
Ahmadinejad announced the upcoming release on NBC's "Today" show in an interview aired early Tuesday, saying it would be a humanitarian gesture.
The announcement comes after an Iranian court Tuesday set bail of $500,000 each for the two American men arrested more than two years ago and convicted on spy-related charges, clearing the way for their release a year after a similar bail-for-freedom arrangement for the third member of the group, their defense attorney said.
Lawyer Masoud Shafiei said the court would begin the process to free Shane Bauer and Josh Fattal after payment of the bail, which must be arranged through third parties because of U.S. economic sanctions on Iran. But the timing of the court's decision is similar to last year's bail deal mediated by the Gulf state of Oman that freed a third American, Sarah Shourd.
"They accepted to set bail to release," Shafiei told The Associated Press after leaving the court. "The amount is the same for Sarah."
The Americans were arrested in July 2009 along the Iran-Iraq border and accused by Iran of espionage. The trio have denied the charges and say they may have mistakenly crossed into Iran when they stepped off a dirt road while hiking near a waterfall in the Kurdish region of Iraq.
Last month, Bauer and Fattal, both 29, were sentenced to three years each for illegal entry into Iran and five years each for spying for the United States. They appealed the verdicts. Shourd's case remains open.
Shafiei said he has passed along details of the court's decision to the Swiss Embassy, which represent U.S. interests in Iran since there are no diplomatic relations between Tehran and Washington.
Iran may have timed the court decision to coincide with President Mahmoud Ahmadinejad's visit later this month to New York for the general assembly of the United Nations. Last year, Shourd was released on bail just as Ahmadinejad was heading for the annual gathering of world leaders.
This story has been updated with new information.