Thank you for your question. God is Just and all people will receive rewards for their good deeds and accountability for their bad deeds. Certain people are given all of the recompenses for any good that they have done in this world, but only to find punishment for the bad they have done in the next. The blissful life in this world distracts them from reforming their ways and their end is undesirable. Conversely, some pay for all of the bad they have done in this world, only to find good in the next. The lives people lead on the outside, during our short stay in the corporeal realm, are not a benchmark for God's favor.
May you always be successful