The Prophet Salallahu Alai wa Salam said "Poverty is my pride." At the same time, he also prayed and asked his Sahaba to pray to Allah and ask Him for refuge or protection from poverty as this could lead to kufr.
We come across both these Hadith. One where he says Poverty is my pride, and the other asking Allahs Protection from poverty.
Contradiction ?? No contradiction.
Mazhar Ali Khan explains both aspects of the Hadith with regards to "Poverty." And the Poverty that The Prophet(SAW) made his 'Pride' and taught the Sabaha to adopt.