Weaning the child before the end of the nursing period is also permissible
❀ ﴿فَإِنْ أَرَادَا فِصَالًا عَن تَرَاضٍ مِّنْهُمَا وَتَشَاوُرٍ فَلَا جُنَاحَ عَلَيْهِمَا﴾
“So if both (parents) wish to wean before the due time, by mutual consent and consultation, then there is no blame on them in that either.”
Reference: (2-Al-Baqarah:233)
Benefit: If both the mother and father, by mutual consultation, agree within the two years to wean the child, or agree to have the child nursed by another woman, then there is no harm; it is permissible and correct. The maximum period of nursing is two years.