In Islam, the concept of illegitimate child, or a child born out of wedlock, is not explicitly addressed in the Quran. However, the Quran does contain teachings on the importance of marriage and the rights of children, which can be applied to the situation of an illegitimate child.
According to Islamic teachings, marriage is a sacred bond between a man and a woman, and it is the foundation of the family. In Surah 4:3 of the Quran, it states: "Marry those among you who are single, or the virtuous ones among yourselves, male or female: if they are in poverty, Allah will give them means out of His grace: for Allah encompasseth all, and he knoweth all things." This verse highlights the importance of marriage in Islam and encourages believers to marry and start a family.
However, if a child is born out of wedlock, it does not mean that the child is not worthy of love and care. In fact, the Quran teaches that all children are to be treated with kindness and compassion, regardless of their circumstances. In Surah 17:23, it states: "Thy Lord hath decreed, that ye worship none but Him, and that ye be kind to parents. Whether one or both of them attain old age in thy life, say not to them a word of contempt, nor repel them, but address them in terms of honor." This verse emphasizes the importance of showing kindness and respect to one's parents, regardless of the circumstances of their birth.
Additionally, the Quran teaches that all children have the right to be cared for and provided for by their parents. In Surah 2:233, it states: "Mothers shall give suck to their offspring for two whole years, (that is) for those (parents) who desire to complete the term of suckling. But the father of the child shall bear the cost of the mother's food and clothing on a reasonable basis." This verse emphasizes the responsibility of both parents to provide for their children and ensure their well-being.
In conclusion, while the concept of illegitimate child is not explicitly addressed in the Quran, Islamic teachings on the importance of marriage and the rights of children can be applied to this situation. All children, regardless of their circumstances, are to be treated with kindness and compassion, and both parents have a responsibility to provide for and care for their children.