Two men sentenced to prison