One of the most profound challenges to faith is witnessing the prosperity and peace of wicked individuals while good people suffer. Navigating this reality requires guidance so that a person does not become confused in their beliefs or begin to question God's ways [מאירי]. This struggle is so universal and difficult that the Holy Spirit addresses King David directly; even individuals of immense spiritual stature can feel distressed by this imbalance [אלשיך]. Naturally, this moral lesson extends to anyone who encounters this challenge [רד״ק].
When observing the success of those who do wrong, people typically experience two natural but harmful reactions. The first response involves a deep sense of frustration. Some interpret this as intense anger and internal bitterness at seeing the wicked live in peace [אבן עזרא, מאירי, מלבי״ם]. Others understand this reaction as a drive toward competition and association, cautioning against getting involved with corrupt individuals or trying to compete with their achievements [רד״ק, מצודת ציון, אבן עזרא]. In this context, there is also a practical warning to avoid provoking a wicked person who is currently enjoying good fortune and worldly success [תורה תמימה].
The second negative reaction is jealousy. Watching corrupt people prosper can lead one to envy them and desire their lifestyle. The primary approach among commentators is that the danger lies not merely in the feeling of envy, but in the temptation to imitate their dishonest actions to achieve similar results [תורה תמימה, רש״י, מאירי, מלבי״ם, מצודת דוד]. Merely entering into a competition with bad people causes spiritual damage, distorting a person's inner world and ambitions [ביאור שטיינזלץ].
To avoid these pitfalls, the practical advice is to physically distance oneself from the environment of the wicked. Removing oneself prevents the constant observation of their prosperity, which naturally eliminates feelings of envy [אלשיך]. Furthermore, a person must remember that the success of those who act unjustly is temporary and lacks true substance. It will inevitably fade away, standing in stark contrast to the genuine and lasting success of a person who places their trust in God [רד״ק, מלבי״ם].