My boyfriend is afraid he won't be a good dad

My boyfriend opened up to me about him being afraid he will be a bad dad. Our baby is due in 2 weeks. His parents were very abusive and left him and his siblings with permanent scars. He asked how is he supposed to be a good dad if he didn't have any example how to parent and then he started crying because he says he wants to be a great father but he is scared to turn out like his parents. I am terrible at making people feel better and I'm pretty sure I did a shitty job. I wanted to try to talk to him about it again when he gets off of work but I'm not sure what to say to make him feel better.