In Matt 5:1 Jesus goes up to the mountain with his disciples but by the end of his sermon we see crowds. Where did they come from? When did they get there? How much of the sermon did the crowds get to hear?

I think that when the word of God is preached with authority, people want to here it!

Matthew 5:1 and Matthew 7:28