Morgan Freeman to Jack Nicholson in The Bucket List (2007), a fair movie about two men dying of cancer living out their last days, while sitting on top of the Great Pyramid of Giza (1):
You know, the ancient Egyptians had a beautiful belief about death. When their souls got to the entrance to heaven, the guards asked two questions. Their answers determined whether they were able to enter or not. ‘Have you found joy in your life?’ 'Has your life brought joy to others?'
(1) I too climbed to the top the Great Pyramid of Giza (also called Cheops or Khufu and built between 2560-2540 BCE) in 1979 and watched the sunrise over Cairo, Egypt.