The passage describes two types of people - those who hear Jesus' words and put them into practice, and those who only hear them but do not practice them. It compares the former to a wise man who built his house on a solid rock foundation, allowing it to withstand storms, while the latter are like a foolish man who built on sand, causing his house to collapse in the storms. When Jesus finished speaking, the crowds were amazed by his teaching.