Man sentenced to prison for trying to join ISIS