“the Law.” See commentary on Proverbs 1:8.
“even his prayer is an abomination.” There are many verses that say that if a person is evil, unrepentant, or ungodly, God will not hear his prayers (cp. Job 35:12-13; Prov. 15:29; Isa. 1:15; 59:1-2; Ezek. 8:17-18; Micah 3:4; Zech. 7:12-13; James 4:3; 1 Peter 3:7). Sadly, this is often ignored by stubborn and hardhearted people who think they are righteous in the sight of God and who therefore pelt Him with prayers that He does not hear. If we are caught up in sin, it is good to pray for God’s help, but that needs to be combined with a genuine effort to overcome sin and become more godly in our walk.