Bruce Almighty (2003) ending / spoiler

After losing Grace and causing major problems because of incidents as God, he gets on his knees to give up being God, but a 18-wheeler hits and kills him. God then tells Bruce to pray, and he prays someone will love and care for Grace. Afterwards, God brings Bruce back to life by answering his prayer. Bruce learns to love his mediocre life and gets back with Grace. And the street sweeper guy throughout the movies is God.

Submitted by Tony