A Statesville man will spend at least two years in prison for supplying fentanyl that led to an overdose death.