A hamster is small enough that the biggest risk is losing track of it, not injuring it. Move the hamster in a secure travel carrier separate from its habitat, and it will barely notice the trip.
Pro tip: Bring a small chew stick or piece of cardboard into the carrier to keep your hamster occupied and calm during the ride.
Watch out: A hamster can squeeze through surprisingly small gaps; check that the travel carrier lid latches fully before the trip.