 He was kept in the prison tied up under chains and 48 locks, and upon chanting the Bhaktamara Stotra all the 48 locks were broken and Acharya Manatunga miraculously came out of the prison.Manatunga (c. seventh century CE) was the composer of famous Jain prayer, "Bhaktamara Stotra".