The main reason for hypocrisy is always that the hypocrite desires to obtain something from the one who is hypocritical to him. In Medina, the group of hypocrites used to tell the polytheists of Mecca that they were with them, but they pretended Islam to convey news to them, so they would show something and conceal other things in themselves and they take the disbelievers as allies instead of the believers to seek the honour through either the wealth or the power. However, the Prophet (saws) clarified to us how to recognize the hypocrites by saying:
“There are three signs of a hypocrite: when he speaks, he tells lies; when he makes a promise, he breaks it; and when he is entrusted, he betrays his trust.” Agreed upon.”
(… أَيَبْتَغُونَ عِندَهُمُ الْعِزَّةَ …) (…Do they seek with them honor [through power]? …): The hypocrite seeks the honour through the disbelievers because he thinks that they possess power, prestige and authority, and definitely he is wrong, because the person in this world is changes, so the one with authority, money or power today may become poor, sick or humiliated tomorrow, whereas:
( فَإِنَّ الْعِزَّةَ لِلَّهِ جَمِيعًا … ) (…But indeed, honor belongs to Allah entirely): The honour of everything belongs to Allah (swt), He is rich and does not become poor, and He is strong and does not weaken, and the Owner of the kingdom, the Owner of Majesty and Honor. Allah (swt) does not change for He is the Perfection
 Sahih al-Bukhari: Book of Faith, Chapter of signs of Hypocrites, Hadith No. 33.