The Supreme Court on Thursday asked all states and Union Territories to put in place a policy for early release of elderly and terminally ill prisoners.