Malaysia’s top prosecutor has cleared Prime Minister Najib Razak of corruption in a long-running financial scandal that has gripped the nation.

The attorney-general’s office said the $681m (£479m) that Mr Najib received in his bank account was a personal donation from the Saudi royal family.

Critics had alleged the money came from state-owned investment fund 1MDB.

Mr Najib has consistently denied these accusations, but has faced pressure to resign over them.

Anti-corruption officials have previously said he received money as a gift from a foreign funder.

Attorney-General Mohamed Apandi Ali said in a press statement on Tuesday that the amount was a “personal donation” from the royal family in Saudi Arabia, transferred between the end of March and early April 2013.

He added that anti-corruption officials had met witnesses including the person they identified as the donor to confirm it.

“I am satisfied that there is no evidence to show that the donation was a form of gratification given corruptly,” he said, adding that evidence did not show the donation was used as an “inducement or reward” for Mr Najib to do anything in his capacity as prime minister.