Proverbs 28:9

9 If anyone turns a deaf ear to my instruction, even their prayers are detestable.

Read Proverbs 28:9 Using Other Translations

He that turneth away his ear from hearing the law, even his prayer shall be abomination.
If one turns away his ear from hearing the law, even his prayer is an abomination.
God detests the prayers of a person who ignores the law.