The Lord spoke to Moses:
References for Leviticus 12:1
"Tell the Israelites: When a woman becomes pregnant and gives birth to a male child, she will be unclean seven days, as she is during the days of her menstrual impurity.
References for Leviticus 12:2
The flesh of his foreskin must be circumcised on the eighth day.
References for Leviticus 12:3
She will continue in purification from her bleeding for 33 days. She must not touch any holy thing or go into the sanctuary until completing her days of purification.
References for Leviticus 12:4
But if she gives birth to a female child, she will be unclean for two weeks as [she is] during her [menstrual] impurity. She will continue in purification from her bleeding for 66 days.
"When her days of purification are complete, whether for a son or daughter, she is to bring to the priest at the entrance to the tent of meeting a year-old male lamb for a burnt offering, and a young pigeon or a turtledove for a sin offering.
References for Leviticus 12:6
He will present them before the Lord and make atonement on her behalf; she will be clean from her discharge of blood. This is the law for a woman giving birth, whether to a male or female.
But if she doesn't have sufficient means for a sheep, she may take two turtledoves or two young pigeons, one for a burnt offering and the other for a sin offering. Then the priest will make atonement on her behalf, and she will be clean."
References for Leviticus 12:8