Al-Baqarah 2:233
۞ وَٱلْوَٰلِدَٰتُ يُرْضِعْنَ أَوْلَـٰدَهُنَّ حَوْلَيْنِ كَامِلَيْنِ ۖ لِمَنْ أَرَادَ أَن يُتِمَّ ٱلرَّضَاعَةَ ۚ وَعَلَى ٱلْمَوْلُودِ لَهُۥ رِزْقُهُنَّ وَكِسْوَتُهُنَّ بِٱلْمَعْرُوفِ ۚ لَا تُكَلَّفُ نَفْسٌ إِلَّا وُسْعَهَا ۚ لَا تُضَآرَّ وَٰلِدَةٌۢ بِوَلَدِهَا وَلَا مَوْلُودٌ لَّهُۥ بِوَلَدِهِۦ ۚ وَعَلَى ٱلْوَارِثِ مِثْلُ ذَٰلِكَ ۗ فَإِنْ أَرَادَا فِصَالًا عَن تَرَاضٍ مِّنْهُمَا وَتَشَاوُرٍ فَلَا جُنَاحَ عَلَيْهِمَا ۗ وَإِنْ أَرَدتُّمْ أَن تَسْتَرْضِعُوٓا۟ أَوْلَـٰدَكُمْ فَلَا جُنَاحَ عَلَيْكُمْ إِذَا سَلَّمْتُم مَّآ ءَاتَيْتُم بِٱلْمَعْرُوفِ ۗ وَٱتَّقُوا۟ ٱللَّهَ وَٱعْلَمُوٓا۟ أَنَّ ٱللَّهَ بِمَا تَعْمَلُونَ بَصِيرٌ
Walwalidatu yurdiAAnaawladahunna hawlayni kamilayni liman aradaan yutimma arradaAAata waAAala almawloodilahu rizquhunna wakiswatuhunna bilmaAAroofi latukallafu nafsun illa wusAAaha la tudarrawalidatun biwaladiha wala mawloodun lahubiwaladihi waAAala alwarithi mithlu thalikafa-in arada fisalan AAan taradinminhuma watashawurin fala junahaAAalayhima wa-in aradtum an tastardiAAoo awladakumfala junaha AAalaykum itha sallamtum maataytum bilmaAAroofi wattaqoo AllahawaAAlamoo anna Allaha bima taAAmaloona baseer
Mothers may nurse [i.e., breastfeed] their children two complete years for whoever wishes to complete the nursing [period]. Upon the father is their [i.e., the mothers'] provision and their clothing according to what is acceptable. No person is charged with more than his capacity. No mother should be harmed through her child, and no father through his child. And upon the [father's] heir is [a duty] like that [of the father]. And if they both desire weaning through mutual consent from both of them and consultation, there is no blame upon either of them. And if you wish to have your children nursed by a substitute, there is no blame upon you as long as you give payment according to what is acceptable. And fear Allāh and know that Allāh is Seeing of what you do.
Mothers (should) suckle their children for two full years, for one who wants to complete the (period of) suckling. It is the obligation of the one to whom the child belongs that he provides food and clothing for them (the mothers) with fairness. Nobody is obligated beyond his capacity. No mother shall be made to suffer on account of her child, nor the man to whom the child belongs, on account of his child. Likewise responsibility (of suckling) lies on the (one who may become an) heir (of the child). Now, if they want to wean, with mutual consent and consultation, there is no sin on them. And If you want to get your children suckled (by a wet-nurse), there is no sin on you when you pay off what you are to give with fairness, and fear Allah, and be assured that Allah is watchful of what you do.