It was taught: A person should never enter his fellow’s house suddenly; and every person should learn proper conduct from the Holy One, blessed be He, who stood at the entrance of the garden and called to Adam, as it is said “And the Lord God called to the man.”
On the daf / in context: God’s announcement before addressing Adam is the model for not entering another’s domain without warning.
Type of Learning
Category E — Analogy / symbolism / archetypal method.
Method — Derech Eretz Rabbah presents God's own conduct as the archetypal example of proper behavior. Before addressing Adam, God stood at the entrance to the Garden and called to him. From this divine model the Midrash derives the rule that a person should not enter another person's home suddenly.
Textual trigger — Genesis 3:9, “וַיִּקְרָא ה׳ אֱלֹהִים אֶל הָאָדָם” (“God called to the man”). Derech Eretz Rabbah 5:2 explains that God stood at the Garden's entrance and called before approaching Adam.
What Is Learned: One must not enter another’s house abruptly; God Himself called from the entrance before speaking to Adam.