I find it interesting that a man who had hundreds of wives - felt the need to comment identically on the contentious and quarrelsome ones. This is almost an exact repeat of a previous proverb in chapter 21, verse 9. What Solomon has to say about this is pretty severe.
To live on a corner of a roof would be very uncomfortable in Israel. The houses of that time had flat roofs - and Scripture required them to build a wall around the top so that people would not fall off of them. Often they would have a set of stairs on the side of the home that led to the top of the house. But to live there would be very uncomfortable. In the summer months the roof would be unbearably hot with the sun beating down upon the poor man's brow. In the winter, or the rainy season, it would be wet and cold there. Yet Solomon states that this would be better than to be in even a palace with a contentious woman.
It might be good for us to see what a "contentious" woman looks like - or better acts like. The word used here is "madon" and its basic meaning is strife or dissension. It refers to a quarrel or dispute that is so filled with anger and bitterness that it cannot be stopped once it starts. That is why Proverbs 17:14 counsels us to abandon such a disupute before it breaks out. But the contetious woman knows no such self-restraint. Her pride and unwillingness to submit to God results in her not only entering into disputes - but even engineering and starting them. This same word is used in Proverbs 18:19 to speak of how strife creates strong barriers between people. The contentious woman doesn't care about this because her heart is already bitter and filled with resentment. Rather than avoid conflicts that result in relational barriers - she fights from hers and builds it higher. A few other verses that use this word indicate to us the following: 1) This kind of contention spreads to other people (Proverbs 6:14, 19), 2) it comes from someone who is hot-tempered and given to fits of anger (Proverbs 15:18), and 3) it is stirred by hatred which is lodged in this woman's heart - which is why she rejects loving, selfless responses and chooses her rage instead (PRoverbs 10:12). What an terrible picture is painted of this contentious woman who loves and embraces anger, bitterness, and loveless rage.
Now you might understand why this guy wants to live on the edge of his roof. He chooses this rather than to be in a house with this lady. Life is miserable for him - and he would choose misery among the elements than even a few moments with this train-wreck of a woman. But, honestly for Solomon, such a situation wasn't exactly prevented by having so many wives and so many concubines. Living among that many women vying for the affection of one very selfish, sexually out of control man, could not have been a picnic. This is why the second reference to this circumstance should be used for wisdom in two ways for us. First - be careful not to marry a bitter woman who overflows with resentment and anger. Second - don't create one either by being a man who is unwise in how he approaches the marriage covenant. Be faithful to one woman in your lifetime. And love her in such a way that she will not ever have the problem of being a contentious wife.