Three's Company - Season 8 Episode 3 The Money Machine
Overview: Jack goes to an ATM machine and the machine goes haywire and spits out all of the money on Jack. He tries to get it back to the bank, but the bank is closed. Janet suggests that he hide it in the couch, which, incidentally, gets takes away by Furley who wants to put in a new couch!