The answer would be B, having his children which prompted Roald Dahl to become a children’s writer.
The reason for this is when the text stated “Roald began to author children’s books after telling stories to his young daughters at bedtime. He credits them for teaching him how to write for children” This evidently supports B because he is thanking his children for teaching him how to write stories for children.