Ps 119:4

119:4 You have commanded your precepts. God entered into a covenant relationship with Israel freely out of grace, and within that relationship God gave them His law to obey. He was not asking them to earn His favor, or pay for their redemption. It was the way of thankful obedience for those in covenant with Him.