File this in the what would you do category. A man, who was homeless, was trying to withdraw $140 from an ATM machine at a TD Bank branch in South Portland, Maine and what happened next was just like a scene from a hidden camera television show.The $140 dollars ended up being $37,000! Police told WGME-TV in Portland, that they responded to a call from a woman who said a man was spending an unusual amount of time at an ATM machine she was waiting to use.

When the police arrived, they found the man stuffing the cash into a shopping bag.

All of the money was returned to the bank and no charges were pressed. Police are continuing to investigate the situation.

A bank official call the incident a 'code error'.

What would you have done? Try to take the money, return the cash, or try and keep some of it?