Hello!
The answer is: become a nun
The book where you can find this tale is A Midsummer's Night Dream. This was a comedy written by William Shakespeare. It tells the story of the wedding between Theseus and Hippolyta.
When giving Hermia, his daughter, those three options, Theseus compares being a nun with a sad and empty life, as women, in his worldview, are fulfilled when having husbands and sons.