"Elegy" is an episode of the American television anthology series The Twilight Zone.
"The time is the day after tomorrow. The place: a far corner of the universe. The cast of characters: three men lost amongst the stars, three men sharing the common urgency of all men lost—they're looking for home. And in a moment they'll find home, not a home that is a place to be seen but a strange, unexplainable experience to be felt."
Running out of fuel, astronauts Meyers, Webber, and Kirby land their spaceship on a remote asteroid. They find the place quite Earth-like with buildings and people. The first place they come to is a farm. The astronauts look around, and find no one. No one, that is, until they see the farmer, with his back to them, gazing off into the distance. They approach him, tap him on the shoulder, then they realize he is nothing more than a statue. The men later come across a mayor being elected, surrounded by people and a band playing. They can hear the music playing, but everyone is stock-still. A beauty pageant is where they find themselves next, where there are several beauty queens on the stage, and lots of people in the audience. As they exit that room, the camera stays on someone in the audience, who suddenly moves. They look for some time, and grow more and more disturbed by their surroundings. Finally, they are startled to find that someone who does move: Wickwire, the caretaker of the place. Wickwire explains to the astronauts that the asteroid is an exclusive cemetery founded in 1973 where rich people can realize their greatest wish in life after they die. He is told that an atomic war destroyed much of the earth, and that it has taken over 200 years to recover from it. Wickwire serves the three men wine and asks what their greatest wish is. All three reply that they wish they were on their ship heading for home. Suddenly, they realize that their drinks have been poisoned. As the men die, Wickwire (who is actually a robot that has been off for 200 years and only turns on when he's needed, such as to dust) apologizes, saying that he needs to ensure the peaceful tranquility of the cemetery because men are incapable of peace. Later, Wickwire installs the embalmed bodies back in their ship, posing them as if they were in fact on their way home. Just as they wished.
"Kirby, Webber, and Meyers, three men lost. They shared a common wish, a simple one, really—they wanted to be aboard their ship, headed for home. And fate, a laughing fate, a practical jokester with a smile that stretched across the stars, saw to it that they got their wish, with just one reservation: the wish came true, but only in the Twilight Zone."