If you have hip discomfort, sleeping on your back with a cushion behind your knees is usually the best way to sleep. It relieves strain on your hips while also encouraging healthy posture and alignment.