O Prophet (صلى الله عليه وسلم)! When you divorce women, divorce them at their 'Iddah (prescribed periods) and count (accurately) their 'Iddah (periods ). And fear Allah your Lord (O Muslims). And turn them not out of their (husband's) homes nor shall they (themselves) leave, except in case they are guilty of some open illegal sexual intercourse. And those are the set limits of Allah. And whosoever transgresses the set limits of Allah, then indeed he has wronged himself. You (the one who divorces his wife) know not it may be that Allah will afterward bring some new thing to pass (i.e. to return her back to you if that was the first or second divorce).
Then when they are about to attain their term appointed, either take them back in a good manner or part with them in a good manner. And take as witness two just persons from among you (Muslims). And establish the testimony for Allah. That will be an admonition given to him who believes in Allah and the Last Day. And whosoever fears Allah and keeps his duty to Him, He will make a way for him to get out (from every difficulty).
And He will provide him from (sources) he never could imagine. And whosoever puts his trust in Allah, then He will suffice him. Verily, Allah will accomplish his purpose. Indeed Allah has set a measure for all things.
And those of your women as have passed the age of monthly courses, for them the 'Iddah (prescribed period), if you have doubt (about their periods), is three months; and for those who have no courses [(i.e. they are still immature) their 'Iddah (prescribed period) is three months likewise, except in case of death] . And for those who are pregnant (whether they are divorced or their husbands are dead), their 'Iddah (prescribed period) is until they lay down their burden; and whosoever fears Allah and keeps his duty to Him, He will make his matter easy for him.
That is the Command of Allah, which He has sent down to you; and whosoever fears Allah and keeps his duty to Him, He will expiate from him his sins, and will enlarge his reward.
Lodge them (the divorced women) where you dwell, according to your means, and do not harm them so as to straiten them (that they be obliged to leave your house). And if they are pregnant, then spend on them till they lay down their burden. Then if they give suck to the children for you, give them their due payment, and let each of you accept the advice of the other in a just way. But if you make difficulties for one another, then some other woman may give suck for him (the father of the child).
Let the rich man spend according to his means; and the man whose resources are restricted, let him spend according to what Allah has given him. Allah puts no burden on any person beyond what He has given him. Allah will grant after hardship, ease.
And many a town (population) revolted against the Command of its Lord and His Messengers; and We called it to a severe account (i.e. torment in this worldly life), and We shall punish it with a horrible torment (in Hell in the Hereafter).
So it tasted the evil result of its affair (disbelief), and the consequence of its affair (disbelief) was loss (destruction in this life and an eternal punishment in the Hereafter).
Allah has prepared for them a severe torment. So fear Allah and keep your duty to Him, O men of understanding who have believed! Allah has indeed sent down to you a Reminder (this Qur'an).
(And has also sent to you) a Messenger (Muhammad صلى الله عليه وسلم), who recites to you the Verses of Allah (the Qur'an) containing clear explanations, that He may take out those who believe and do righteous good deeds, from the darkness (of polytheism and disbelief) to the light (of Islamic Monotheism). And whosoever believes in Allah and performs righteous good deeds, He will admit him into Gardens under which rivers flow (Paradise) to dwell therein forever. Allah has indeed granted for him an excellent provision.
It is Allah Who has created seven heavens and of the earth the like thereof (i.e. seven). His Command descends between them (heavens and earth), that you may know that Allah has power over all things, and that Allah surrounds all things in (His) Knowledge.