[And indeed, the companions of the thicket were wrongdoers], meaning: those to whom Shu'ayb was sent. Al-Aykah were the companions of a thicket that was the source of most of their fruit.
﴿وَإِنْ كَانَ أَصْحَابُ الأَيْكَةِ لَظَالِمِينَ﴾ يَعْنِي: الَّذِينَ بُعِثَ إِلَيْهِمْ شُعَيْبٌ وَالأَيْكَةُ كَانُوا أَصْحَابَ كَانَ عَامَّةَ ثمرهم