The child is attributed to him on whose bed he is born; but they did not mention this:" For a fornicator there is stoning."
Sahih Muslim Book 17, Hadith 47