The riddle
When Is It Right to Lie?
AnswerWhen you are in bed
From The World's Best Conundrums and Riddles of All Ages, 1924
Two words, one spelling
Lie can mean to rest in a flat position, and it can also mean to say something untrue. These are two separate words that happen to be spelled the same. The question seems to ask about the second kind, which is rarely right, and the answer uses the first. When you are in bed, lying down is exactly what you are supposed to do.