There are various opinions on the tafseer of the ayah:

وَالْوَلِدَتُ يُرْضِعْنَ أَوْلَـدَهُنَّ حَوْلَيْنِ كَامِلَيْنِ

“The mothers should suckle their children for two whole years…” [2:233]

The Lajnah ad-Da’imah was asked the following question:

Question:

Some mothers do not breastfeed their babies to preserve their own health and others do not breastfeed their babies for the full period of two years. Are they considered sinners for doing so? Please answer me. May Allah grant you success!

Answer:

“It is Wajib (obligatory) for mothers to breast-feed their babies and look after their health. It is impermissible for them to depend entirely on imported milk or any other milk other than the breast milk unless their husbands approve of doing this and no harm is expected to afflict the babies.

May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.

The Permanent Committee for Scholarly Research and Ifta’ “. End quote. [Reference]

Also the Lajnah Daa’imah was asked the following question:

Question:

Is it permissible to delay weaning a baby after the two years prescribed in the Qur’an?

Answer:

“This is permissible if there is a need for delay. Also, it is permissible to wean a baby before they complete two years of age if this is for their benefit. However, the basic rule is that a baby is breast-fed for two years and this should not be changed unless there is an urgent need requiring this change.

May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.

The Permanent Committee for Scholarly Research and Ifta’ “. End quote. [Reference]

Mentioned by

AbdulFattaah Bin Uthman
Abu Fajr