Homer gets jealous of Flanders and his incredible string of good luck. So he decides to imitate his neighbor and pray to God for good things to happen.
Sure enough Homer starts to have things go his way, but it gets out of hand when he prays for a better house.
By twist of fate, the town church is handed over to Simpsons as their new home, and the churchgoers are evicted. Hell then descends on Springfield and chaos ensues until Homer promises to vacate the church.