The criminal agreed to leave the prison on a condition that the king undertakes to pay his pension regularly and received one-third of his annuity as advance from the prince .