Simply drop a compass onto your Hotbar. When you have the compass in your Hotbar, the red arrow will point in the direction of the World spawn location. Follow the arrow's direction of travel by turning so that it points upward.