O Nabi (prophet)! When you divorce women, divorce them counting their periods at their waiting periods. And have piety towards Allah, your Lord. Do not be the one who drives them out of their houses, nor should they themselves leave, unless they come to you with an open prostitution. And these are the limits of Allah, and whoever goes beyond the limits of Allah, then indeed he has wronged his own soul. You would not know, after that Allah may (open another door) bring about a new thing (situation).
So when they (the wives that you have divorced) have reached their waiting time, then retain (lodge) them with kindness (based on your traditions and with goodness) or separate from them with kindness (set them free). And two from among you who are just should witness. Be a witness for Allah. The one who believes in Allah and the latter day (the day of reaching Allah before death) is admonished with this (is asked to this). And whoever has piety towards Allah; (Allah) makes for him an outlet.
And gives him sustenance from where he did not expect. Whoever puts his trust in Allah, He (Allah) is Sufficient for him. Surely Allah is the One Who accomplishes His Order (Affair). Allah had set a fate for all things.
And if you become suspicious of your women who have despaired of menstruation, then their prescribed time is three months, and of those too who have not. The waiting time for the loaded (pregnant) women is until they lay down their burden (give a birth). And whoever becomes the owner of piety towards Allah, (Allah) makes easy for him his affair.
This is the Command of Allah which He has sent down to you. And whoever becomes the owner of piety towards Allah; Allah covers their sins and increases his reward to the highest.