There is no sin in divorcing your wives before the consummation of marriage or settling the dowry; but then provide adequately for them, the affluent according to their means, the poor in accordance with theirs as is befitting. This is surely the duty of those who do good. 236 And if ye divorce them ere ye have touched them but have settled unto them a settlement, then due from you is half of that which ye have settled unless the wives forego, or he in whose hand is the wedding-knot foregoeth, and that ye should forego is nigher unto piety. And forget not grace amongst yourself; verily of that which ye work Allah is the Beholder. 237 Attend constantly to prayers and to the middle prayer and stand up truly obedient to Allah. 238 And if you fear [an enemy, then pray] on foot or riding. But when you are secure, then remember Allah [in prayer], as He has taught you that which you did not [previously] know. 239 And those of you who die, leaving wives, let them make testament for their wives, provision for a year without expulsion; but if they go forth, there is no fault in you what they may do with themselves honourably; God is All-mighty, All-wise. 240 And the divorced women, too, shall have [a right to] maintenance in a goodly manner: this is a duty for all who are conscious of God. 241 Thus does Allah make clear to you His verses that you might use reason. 242