Job 42:3:

Who is he that hideth counsel without knowledge? therefore have I uttered that I understood not; things too wonderful for me, which I knew not. Wherefore I abhor myself, and repent in dust and ashes.

See also:

Objection: Job Was a Godly Man, Yet God Let Him Get Sick