What does pride come from, what does delusion come from, and which poem does it come from?

Pride comes from shallowness, and arrogance comes from ignorance.

The more proud people are, the less they know, because those who know more will feel that they don't know much.

The more arrogant a person is, the less intelligent he is, because smart people will not be arrogant casually.