MEMPHIS, Tenn. (AP) — A Tennessee man has been sentenced to 25 years in federal prison for selling heroin to a person who died of an overdose.

The U.S. attorney's office in Memphis says a judge also sentenced 51-year-old Marvin Foster to three years' probation Tuesday.

Prosecutors say Foster, of Halls, sold heroin to Cody Tetleton, who overdosed July 1, 2014. Foster drove Tetleton's truck to a rural area and left the vehicle there with Tetleton inside. A farmer found the truck the next day.

A medical examiner reported Tetleton died of heroin toxicity. Tetleton had been released from drug rehabilitation treatment about two weeks before he died.

A prosecutor read a statement from Tetleton's father in court. Eddie Tetleton wrote that families around the country have stories that "are hauntingly similar to ours."