Here "pits" refers to the enemies' plans to capture him. This can be stated in active form. Alternate translation: "he was the one whom our enemies captured by their plans" or "our enemies made plans to capture our king, and they did capture him" (See: [[rc://en/ta/man/translate/figs-metaphor]] and [[rc://en/ta/man/translate/figs-activepassive]])
This phrase with the quote following it gives us more information about the king. The quote shows what the people had hoped the king would do for them before he was trapped. It can be expressed in active form. Alternate translation: "even though we had said about him" (See: [[rc://en/ta/man/translate/figs-distinguish]] and [[rc://en/ta/man/translate/figs-activepassive]])
Here "his shadow" represents him protecting them. Alternate translation: "Under his protection we will live among the nations" or "Though we may have to live in other nations, he will protect us" (See: [[rc://en/ta/man/translate/figs-metaphor]])