@badazn In ancient China, it was illegal for a man who married when poor to divorce his wife after he became rich.
Under the Tang Code (7th century), a husband who did so got 100 strokes of the heavy stick and was forced to take her back. Later dynasties kept the law.