God says
… Indeed, God does not love any of those who, full of self-conceit, act in a boastful manner.-- Q.4: 36
And thus it is: if We let him taste ease and plenty after hardship has visited him, he is sure to say, “Gone is all affliction from me!” – for, behold, he is given to vain exultation, and glories only in himself.* -- Q.11:10
* Lit., “he is exultant beyond all measure, excessively self-glorifying” -- i.e., he usually attributes the turn of fortune to his own good qualities and his supposed “good luck” and not to God’s grace.
Prophet said
2. “Behold, God has removed from you the arrogance of ignorance with its boast of ancestral glories. Man is but a God-conscious believer or an unfortunate sinner. People, every one of them, are children of Adam, and Adam was created out of dust.” -- H: Tirmizi and Abu Daud. N: Abu Hurairah.
3.“He who boasts of receiving what he has not been given is like one who puts on two false garments.” – H: Bukhari and Muslim. N: Asma.