"the Gilead": We are hereby taught that He showed him the Temple (area) settled in its tranquility and then, its destroyers, "Gilead" being the Temple, viz. (Jeremiah 22:6) "Gilead are you (the Temple) to Me, the summit of the Levanon."

"until Dan": We are hereby taught He showed him the land of Dan, settled in its tranquility, and then its oppressors.

Variantly: "until Dan": We are hereby taught that He showed him the seed of Dan, serving idolatry, viz. (Judges 18:30) "And the children of Dan set up for themselves the carved image, etc.", and then, the redeemer destined to arise from him — Samson.