Two sons of Saudi Arabiainfo-icon's late King Abdullah have been released from detention at Riyadh's Ritz-Carlton hotel, days after nearly 20 other detainees in the two-month-old anti-corruptioninfo-icon campaign were also freed.

Saudi Arabia's attorney general approved the release of Prince Meshaal bin Abdullah and Prince Faisal bin Abdullah after they reached financial settlements with the government.

The attorney general had not yet reached a decision on whether to release a third brother, Prince Turki bin Abdullah, source said.

A related member of the royal family, Princess Nouf bint Abdullah bin Mohammed bin Saud, tweeted photos of the two princes and exclamations of thanks on Thursday.

Saudi security forces rounded up some 200 princes, ministers and businessinfo-icon leaders and converted the Ritz-Carlton into a luxurious prison for them early last month in what Riyadh said was a crackdown on corruption.

The move was widely seen by analysts as helping Crown Prince Mohammed bin Salman consolidate his grip on power, after he ousted his cousin as heir to the throne in the summer.

The most powerful of King Abdullah's sons, former National Guard chief Prince Miteb bin Abdullah, was released last month after agreeing to pay the government $1 billion.

Prince Miteb had been the last member of King Abdullah's Shammar branch of the family to retain a key position in the Saudi power structure, after Prince Meshaal and Prince Turki were relieved of their posts as governors in 2015.

Saudi newspaper Okaz reported on Tuesday that 23 individuals had been released after reaching deals with the government and that more were expected to follow in the days ahead.

Others who had not reached settlements would face trial, the report said.