John Kenneth Galbraith said this quote

When people are least sure they are often most dogmatic.