The Prophet (peace and blessings be upon him) forbade solitude, that is, a man spending the night alone.