Now when he had ended all his sayings in the audience of the people, he entered into Capernaum.
when.
Matthew 7:28,29 And it came to pass, when Jesus had ended these sayings, the people were astonished at his doctrine...
he entered.
Matthew 8:5-13 And when Jesus was entered into Capernaum, there came to him a centurion, beseeching him...