Matthew wrote that Jesus was born when Herod was king .
Both Matthew and Luke wrote that Jesus was born when Herod was king .