Those who not prosper?
1- who is falses to god

ولا تقولوا لما تصف السنتکم الکذب هذا حلال وهذا حرام لتفتروا علی الله الکذب ان الذین یفترون علی الله الکذب لا تفلحون- surah alnahl
116. But say not - for any false thing that your tongues may forth,- "This is lawful, and This is forbidden," so As to ascribe false to Allah. for those who ascribe false things to Allah, will never prosper.
2- who is disbeliever
ومن یدع مع الله الها ءاخرلا برهان له به فانما حسابه عند ربه انه لا یفلح الکافرون-
Surah almomenon
117. If anyone invokes, besides Allah, any other god, He has no authority therefor; and His reckoning will be only with His Lord! and Verily the unbelievers will fail to win through!