FYI, certain places are much better places to rest or sleep in. Or much worse. You'll learn from experience, but here's a clue: the Temple of the King on Sanctuary Island is a great place to crash, you'll regain energy and health much more quickly there than most other places.
Also, infirmaries, hospitals, and first-aid stations are good.