Muhammed Ali, 20, was locked up for two-and-a-half years