The police submitted charge sheet against him in the court. During the court proceedings the Superintendent of Police, who was a Muslim, went to Ashfaq's jail room and tried to wean him away from the revolutionaries, but he failed.
The efforts of the lawyers to save the revolutionaries, however, failed in the court of justice which sentenced to death Ramaprasad Bismil, Ashfaqullah Khan, Rajendra Lahiri and Roshan Singh. The others were given life sentences.