A man who gave Charleston attorney David Aylor a pill laced with a fatal dose of fentanyl received a five-year prison sentence Wednesday.