Scripture should never be taken out of context. People throughout history have done so, making it say what they want, and setting themselves up for YHWH’s judgement. However, Proverbs, is a unique book in that there are many “sound-bites” that are short and straightforward. For example, the verse below clearly admonishes those who reject Torah.
If a person will not listen to Torah, even his prayer is an abomination. ~~ Proverbs 28: 9
The wording in the Hebraic Roots Bible is worth noting as well: Whoever turns aside his ear from hearing the Torah, even his prayer is an abomination. ~~ Proverbs 28: 9