Quran 22:12 — Pilgrimage (Al-Hajj)
He idolizes beside GOD what possesses no power to harm him or benefit him; such is the real straying.
[22:11] Among the people there is the one who worships GOD conditionally. If things go his way, he is content. But if some adversity befalls him, he makes an about-face. Thus, he loses both this life and the Hereafter. Such is the real loss.
[22:13] He idolizes what is more apt to harm him than benefit him. What a miserable lord! What a miserable companion!