"I'm looking forward to the views," said pilot Eric Boe, who will be at the shuttle's controls.
The shuttle's crew was set to return to Florida on Sunday after completing a 16-day mission. It delivered a huge crate of cargo to the space station, which included a new bathroom, kitchenette, two bedrooms, exercise equipment, and a system that purifies urine, sweat and condensation into drinking water. All is needed to double the space station's population to six next year.
Endeavour astronauts also performed four spacewalks to clean and lubricate a jammed joint that rotates solar wings toward the sun to generate power.
"You've totally fixed us up on the inside and on the outside," station commander Mike Fincke told Endeavour's crew before the hatches between the station and shuttle shut Thursday evening. "You guys were such perfect guests. You left the place cleaner than you found it."
The shuttle will bring back Gregory Chamitoff, who lived for six months at the space station. Astronaut Sandra Magnus took his place on the three-person crew after arriving Nov. 16 aboard Endeavour. The station's other crew members are Fincke and Russian cosmonaut Yuri Lonchakov.
"As I leave it today, I feel both happy and sad," Chamitoff said Thursday evening. "Sad to leave my crew. ... And of course I'm really happy because I'm really looking forward to seeing my family."
Before the hatches closed and the astronauts exchanged farewell hugs, the two crews ate a Thanksgiving meal together of smoked turkey, candied yams, green beans and cornbread dressing.
Flight controllers in Mission Control also got into the Thanksgiving spirit. They ate Thanksgiving dinners at their consoles and displayed an animated turkey on the center's gigantic electronic map, which tracks the space station's orbit around the world.