Bedazzled (1967) ending / spoiler
Stanley's last wish turns him into a nun, and Spiggott says that he will remain one for all eternity. However, since Spiggott has got a few more souls than he needs, he gives Stanley his soul back. He then goes to Heaven and asks God to let him back in - only to get told that because he gave Stanley his sole back to feel good about himself, he's lost the bet. Things revert to how they were at the start of the movie, only this time Stanley asks Margaret out - but gets turned down anyway. Spiggott makes the offer again, but Stanley refuses.
Submitted by Dave