Bender is feeling pretty down after two failed attempts at being remembered. The crew throws him a surprise funeral to show him how much he will be remembered. It doesn't work and Bender feels even worse.
Fry, Leela, and Bender have to deliver a giant sandstone to Osiris 4, a planet resembling ancient Egypt. Once there they are enslaved to work on pharaoh Hamenthotep's pyramid. After the pharaoh dies, Bender tricks everyone into thinking that he's the next prophesied pharaoh.
Bender commands that a gigantic statue of him be built so that he will be remembered for all time. Once it is built, Bender is displeased and commands that it be rebuilt. This angers the people; and they throw him, Fry, and Leela into the tomb. Leela creates an explosion to get out and they escape the planet.