A Santa Maria man was sentenced to eight years in state prison for the stabbing death of a Pismo Beach man in 2024.