Genesis 30:3-6

30:3 She replied, “Here is my servant Bilhah! Have sexual relations with her so that she can bear children for me and I can have a family through her.”

30:4 So Rachel gave him her servant Bilhah as a wife, and Jacob had marital relations with her. 30:5 Bilhah became pregnant and gave Jacob a son. 30:6 Then Rachel said, “God has vindicated me. He has responded to my prayer and given me a son.” That is why she named him Dan.