1Seeing the crowds, he went up on the mountain, and when he sat down, his disciples came to him.
Jesus is the one who saw the crowds. He was the subject of Matthew 4:23–25 and so we naturally assume that he is also the subject in view in Matthew 5:1.
1 Seeing the crowds, he went up on the mountain, and when he sat down, his disciples came to him.