Lead singer of AC/DC, Bon Scott, died of alcohol poisoning in early 1980. They were already a successful band: Highway to Hell, Dirty Deeds, etc.
A little over 1/2 year later, they wrote and released Back in Black with new singer Brian Johnson, and that album is considered one of the greatest rock albums of all time.
There must be other cases where this happened?