Serious Question for Muslims

PCG, pay attention to the hadith. It said illegal not open. Illegal constitutes intercourse out of wedlock or with someone other than your spouse. If a woman in a muslim society gets pregnant out of wedlock and her crime went undetected until she gives birth, then what do you say?