Garuda Purana 1.115.64
”A barren woman shall be abandoned in the eighth year after marriage; a woman whose children die in infancy shall be abandoned in the ninth year; a woman who gives birth only to daughters shall be abandoned in the eleventh year and a woman who speaks unpleasant words shall be abandoned immediately.”
Yajnavalkya Smriti verse 73
The liquor drinker, the diseased, the cunning, the barren, the killer of wealth, the unpleasant spoken, who bears female children should be superseded, so also (one) who hates people.
Manu Smriti 9.81
A barren wife may be superseded in the eighth year, she whose children (all) die in the tenth, she who bears only daughters in the eleventh, but she who is quarrelsome without delay.
Narada Smriti 12.94
Let not a husband show love to a barren woman, or to one who gives birth to female children only, or whose conduct is blamable, or who constantly contradicts him; if he does (have conjugal intercourse with her), he becomes liable to censure (himself).
Satapatha Brahmana 22.214.171.124
And on the following day he goes to the house of a discarded (wife), and prepares a pap for Nirriti;–a discarded wife is one who has no son…hail!’ For a wife that is without a son, is possessed with Nirriti (destruction, calamity)…
Devi Bhagavatam 2.6.36-48
Once while he was listening to the religious discourses of the Munis, he heard unmistakeably the Munis telling that the man who is sonless can never go to the Heavens; so he must get a son somehow or other
Devi Bhagavatam 1.4.15-27
There is no prospect in the after birth of the sonless; never, never will Heaven be his. Without son, there is none other who can be of help in the next world. Thus in the Dharma S’âstras, Manu and other Munis declare that the man who has sons goes to Heaven and the sonless one can never go to Heaven. The man possessing a son is entitled to the Heavenly pleasures can be vividly seen, rather than imagined. The man with son is freed from sins; this is the word of the Vedas…