Jesus compares the person who obeys his teaching to a man who builds a house on rock where it will be safe from floods. (See: [[rc://en/ta/man/translate/figs-simile]])
It may be clearer to change the order of this sentence. AT: "I will tell you what every person is like who comes to me and hears my words and obeys them"
"dug the foundation of the house deep enough to reach a foundation of solid rock." Some cultures may not be familiar with building on bedrock, and may need to use another image for a stable foundation. (See: [[rc://en/ta/man/translate/figs-explicit]])
the part of a house that connects it to the ground. People in Jesus' time dug down into the ground to the solid rock and then began to build on the rock. That solid rock was the foundation.