They both made a covenant before Yahweh. Then David stayed in the woods, and Jonathan went to his house.