Vayikra (Leviticus): Tazria > Ch 12
How a woman should become clean after giving birth
If a woman gives birth to a male
She shall be unclean for 7 days; as [in] the days of her menstrual flow, she shall be unclean.
On the eighth day, the flesh of his foreskin shall be circumcised.
For 33 days, she shall remain in the blood of purity; she shall not touch anything holy, nor may she enter the Sanctuary, until the days of her purification have been completed.
If a woman gives birth to a female
She shall be unclean for two weeks, like her menstruation [period].
For sixty six days, she shall remain in the blood of purity.
When the days of her purification have been completed
She shall bring a sheep in its first year as a burnt offering, and a young dove or a turtle dove as a sin offering, to the entrance of the Tent of Meeting, to the kohen. And he shall offer it up before the Lord and effect atonement for her, and thus, she will be purified from the source of her blood. This is the law of a woman who gives birth to a male or to a female. And if she cannot afford a sheep, she shall take two turtle doves or two young doves: one as a burnt offering and one as a sin offering. And the kohen shall effect atonement for her, and she shall become clean.