According to Jim: Season 8, Episode 18
Heaven Opposed to Hell (2 Jun. 2009)
TV Episode - - Comedy
Jim chokes on food and is passing out. In a dream sequence, he talks to God and the Devil who are about to decide his fate of where he will spend his after life.