"And the companions of the stone indeed denied the messengers." He means: Thamud, the people of Salih.
﴿وَلَقَدْ كَذَّبَ أَصْحَابُ الْحِجْرِ الْمُرْسَلِينَ﴾ يَعْنِي: ثَمُود قوم صَالح