Homer thinks back to when he sold all his stock to buy a bowling ball on "Four Regrettings and a Funeral." This is a scene from that episode.
Added:
The family attends a funeral when someone in Springfield dies on The Simpsons. "Four Regrettings and a Funeral" is the third episode of the show's 25th season.
Added: