In the name of Allah, Most Gracious, Most Merciful.
1. O Prophet, when you [Muslims] divorce women, divorce them for [the commencement of] their waiting period [1] and keep count of the waiting period,1 and fear Allah, your Lord. Do not turn them out of their [husbands’] houses, nor should they [themselves] leave [during that period] unless they are committing a clear immorality. And those are the limits [set by] Allah. And whoever transgresses the limits of Allah has certainly wronged himself. You know not; perhaps Allah will bring about after that a [different] matter [2].
2. And when they have [nearly] fulfilled their term, either retain them according to acceptable terms or part with them according to acceptable terms. And bring to witness two just men from among you and establish the testimony for [the acceptance of] Allah. That is instructed to whoever should believe in Allah and the Last Day. And whoever fears Allah – He will make for him a way out [3]
3. And will provide for him from where he does not expect. And whoever relies upon Allah – then He is sufficient for him. Indeed, Allah will accomplish His purpose. Allah has already set for everything a [decreed] extent.
Sura 65. At-Talaq
[1]: Perhaps the husband who has divorced his wife may change his mind and restore the marriage before the end of her waiting period (after the first or second count of revocable divorce).
[2]: A husband may separate from his wife after each of the first two counts of divorce or at the end of her waiting period with dignity. If he chooses to stay with her after the first two counts of divorce then divorces her a third time, the marriage is terminated at the end of her third waiting period. The wife will have to marry and divorce another man before she can be remarried to her ex-husband (see 2:230). However, a woman marrying someone with the intention of getting divorced, in order to return to her first husband, is forbidden.
[3]: i.e., relief from distress.