Breastfeeding
Mothers may nurse their children for two full years if they wish to complete the nursing period. The father must provide for them fairly, ensuring their sustenance and clothing in a manner befitting kindness. No soul should be burdened beyond its capacity. Neither mother nor father should be harmed because of their child. The same duty applies to the father’s heirs. If both parents, through mutual consultation and agreement, decide to wean the child, there is no blame upon them. If you choose to have your children nursed by someone else, there is no sin, provided you fairly compensate them. Be mindful of Allah, and know that He sees all that you do.
2:233Mothers shall suckle their children for two whole years; (that is) for those who wish to complete the suckling. The duty of feeding and clothing nursing mothers in a seemly manner is upon the father of the child. No-one should be charged beyond his capacity. A mother should not be made to suffer because of her child, nor should he to whom the child is born (be made to suffer) because of his child. And on the (father's) heir is incumbent the like of that (which was incumbent on the father). If they desire to wean the child by mutual consent and (after) consultation, it is no sin for them; and if ye wish to give your children out to nurse, it is no sin for you, provide that ye pay what is due from you in kindness. Observe your duty to Allah, and know that Allah is Seer of what ye do.