The story
From the idea that people who act justly have no worries and so sleep well, while unjust people are concerned about the consequences of their actions and so sleep poorly.
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: A deep and worry-free sleep. Full definition →