Rich Man, Poor Man (1976)
S4E28 Stewie B. Goode
Following his defeat in a swimming contest, Stewie plots to eliminate his competitor by blowing up the lifeguard tower. However, his scheme goes awry, and he ends up having a near-death experience that appears to transform his outlook on life.