Ahmadinejad himself also wrote to judiciary chief Ayatollah Mahmoud Hashemi Sahrudi instructing him to release remaining detainees within the next 10 days , in his first such comments concerning the protesters .