Rabbi Yehoshua of Sikhnin said in the name of Rabbi Shmuel: He consulted with the souls of the righteous. That is what is written: “They are the potters and the inhabitants of Neta’im and Gedera; they dwelled there with the king for his works” (I Chronicles 4:23). “They are the potters [hayotzerim]” – alluding to: “the Lord God formed [vayitzer] man of dust from the ground” (Genesis 2:7). “Inhabitants of Neta’im” – alluding to: “the Lord God planted [vayita] a garden eastward in Eden” (Genesis 2:8).

“And Gedera” – after “for I set the sand as a barrier [gader] for the sea” (Jeremiah 5:22).23“They are the potters and the inhabitants of Neta’im and Gedera” are all seen as allusions to the righteous, as God created man, planted the Garden, and placed boundaries for the sea only after having consulted with the souls of the righteous. “They dwelled there with the king for his works” (I Chronicles 4:23) – “with the king,” the King of kings, the Holy One blessed be He, “they dwelled,” [referring to] the souls of the righteous, [“for his works”], as the Holy One blessed be He consulted them when creating the world.