This is an important question that is beyond human thinking and that is why I come with all the proof to back my claim. I don't think it a blessing from God. But still go through this link pls gradually.
Are children born out of wedlock is still a blessing from God?
It should be noted that children conceived out of wedlock are automatically entitled to inherit from their deceased mother but not automatically from their deceased father. A child born out of wedlock is disqualified from inheriting from his or her deceased father as an intestate beneficiary in terms of Islamic law. 21 It should be noted that it is possible for a child born in wedlock not to inherit from his father if he was conceived out of wedlock. Islamic law looks at the moment of conception and not the moment of birth.