HONG KONG — Najib Razak, the former prime minister of Malaysia, was arrested Wednesday and will be charged over hundreds of millions of dollars that were transferred to his personal account, the country’s anticorruption agency said.

Mr. Najib, 65, was previously arrested in July and charged with three counts of criminal breach of trust and one count of corruption as part of an investigation into the diversion of money from a state investment fund he founded.

His latest arrest was over $681 million deposited into his account in 2013, the Malaysian Anti-Corruption Commission said in a statement. Mr. Najib has long said the money came from Saudi donors, but prosecutors say it was taken from the investment fund, 1Malaysia Development Berhad, known as 1MDB.

He was arrested at the anticorruption agency’s headquarters in Putrajaya, Malaysia’s administrative capital. He is scheduled to appear in court Thursday afternoon and will face several charges, the agency said. Mr. Najib was also charged with three counts of money laundering last month.