Likely during the period of the Monarchy in Israel (10th to 6th Century BC)
The Israelites were a covenant people, living under the Law of Moses, with a strong emphasis on justice and righteousness as defined by Yahweh.
Israel was often under threat from surrounding nations and internal corruption, leading to a cry for divine justice and intervention.
The setting is within the land of Israel, possibly in Jerusalem, where the temple and the seat of religious and judicial authority were located.
The society was expected to uphold justice and righteousness, with leaders and judges accountable to God's laws. Injustice and oppression were seen as violations of the covenant with God.
Yahweh
The divine judge and protector of the righteous, called upon to bring justice.