And when you divorce women and they have [ nearly ] fulfilled their term , either retain them according to acceptable terms or release them according to acceptable terms , and do not keep them , intending harm , to transgress [ against them ] . And whoever does that has certainly wronged himself .