Both men were given strict rules but they disobeyed claiming it's the ladies. Of course, it was them but the ladies were not given the instructions, it was the men. Why didn't they use wisdom to refuse?
Learn from David too as you use Solomon, yes, he had them but they also led to his relationship with God ruining. He was blessed with the wisdom of God, so he was quite successful but even the one's with a wife still lack the wisdom to lead a wife.