If you can cultivate wholesome mental states prior to sleep and allow them to continue right into sleep without getting distracted, then sleep itself becomes wholesome.
Dalai Lama (2002). “Sleeping, Dreaming, and Dying: An Exploration of Consciousness”, p.124, Simon and Schuster