Is it haram/sin to be arrogant and proud?

To be proud of one’s religion (Islam) and to be a proud and active member of Muslim community is a righteous deed, however if one is proud of his lineage, ancestry, wealth, position or status, then this is not allowed but rather sinful act.