The phrase ‘sleep tight’

The phrase ‘sleep tight’ came from the time of William Shakespeare where beds were secured by ropes. The tighter the rope, the firmer the mattress.