1220 GMT February 18, 2019
Judges of the top court said there should be ‘no legal barrier’ to releasing the nine people, including the island nation's exiled former president Mohamed Nasheed, whose terrorism and corruption convictions it overturned last week, Al Jazeera reported.
Their statement came after Attorney-General Mohamed Anil raised concerns about freeing people convicted of "terrorism, bomb attacks, corruption, embezzlement and fraud".
The top court's ruling last week has plunged the Maldives into political turmoil and dealt a major blow to Yameen, who critics accuse of corruption, misrule and rights abuses.
He denies the allegations.
The sudden about face by the Supreme Court, which sided with Yameen in the past, and the widespread international support for its verdict puts unprecedented pressure on the president to free his opponents ahead of a presidential election later this year.
The government accused the Supreme Court of trying to oust the president, a claim judges did not respond to in their statement late on Sunday.
Earlier in the day, the attorney general, in a televised appearance flanked by the chiefs of the army and the police, said the government has received news of an imminent order by the Supreme Court to impeach Yameen.
"I have informed all law enforcement agencies they must not obey such an illegal order," Anil said.
Ahmed Shiyam, the army chief, said the security forces would follow the attorney-general's advice and "will not wait and watch as the Maldives descends into crisis".
The opposition called Anil's order to the security forces "unconstitutional, highly illegal, and dangerous" and petitioned parliament to oust Anil, as well as the country's chief prosecutor.
Shortly afterwards, soldiers surrounded the parliament building and sealed it off.
The opposition now have a majority in the 85-member house as the Supreme Court ruling also reinstated 12 members of parliament who were stripped of their seats last year.
But two of the 12 were arrested at the airport on Sunday, shortly after they returned to the Maldives after spending months in exile.
Abdulla Sinan and Ilham Ahmed were detained on charges of bribery, a police spokesman told Al Jazeera.
Ibrahim Mohamed Solih, an opposition Parliamentarian, condemned their arrest in a statement.
"We call on the police to release the Members of Parliament immediately, and to stop following unlawful orders, to stop obstructing the lawful mandate of Parliamentarians," Solih said.
"In a desperate attempt to cling onto power, President Yameen has illegally overrun the state. His attorney-general has illegally assumed the powers of the apex court, while the military has overrun the legislature," he added.
On Sunday night, hundreds of flag-waving opposition supporters took to the streets calling on the government to abide by the court ruling.