Proverbs 28:9

Whoever turns away his ears from listening to the law: his prayer will be detestable

Other versions

King James Version

He that turneth away his ear from hearing the law, even his prayer shall be abomination.

English Standard Version

If one turns away his ear from hearing the law, even his prayer is an abomination.

New International Version

If anyone turns a deaf ear to the law, even his prayers are detestable.