Several astronauts have traveled into space aboard one spacecraft, only to return aboard a different spacecraft. Naturally this happened many times while the Space Shuttle was servicing the ISS, with crew members often returning aboard a different Shuttle than the one they arrived on.
It also happened at least once "unplanned," in 2023, when Soyuz MS-22 was damaged and Soyuz MS-23 was launched unmanned to return the crew.
In all of these cases, though, the astronauts returned aboard the same class of spacecraft.
Has there ever been an instance of an astronaut traveling to space aboard one class of spacecraft, and returning on another?