Stop over (somewhere)

To stay at a place overnight or for a short time while on a trip.

The airplane had to stop over in Alaska because one of the passengers had a heart attack.