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 you divorce them before the consummation of marriage, but after settling the dowry, then half the settled dowry must be paid, unless the woman forgoes it, or the person who holds the bond of marriage pays the full amount. And if the man pays the whole, it is nearer to piety. But do not forget to be good to each other, and remember that God sees all that you do. 237 Be ever mindful of prayers, especially the middle prayer; and stand up before God in submissive devotion. 238 When you are exposed to danger, pray on foot or while riding; when you are safe again, remember God, for He has taught you what you did not know. 239 And those of you who die and leave wives behind, they shall make a bequest unto their wives a year's maintenance without their having to go out, then if they go out, then no blame is on you for that which they do with themselves reputably, and Allah is Mighty, Wise. 240 For divorced women a provision according to what is fair shall also be made. This is an obligation binding on the righteous. 241 Thus does God explain His revelations to you so that perhaps you will have understanding. 242