قَالَ أَوْسَطُهُمْ أَلَمْ أَقُل لَّكُمْ لَوْلَا تُسَبِّحُونَ Qur’an Al-Qalam (68:28)Qala awsatuhum alam aqul lakum lawla tusabbihoona
This is obviously a reference to their failure to realize that nothing can come about unless the Almighty so wills (verse {18}).
This was not necessarily a righteous man, but there are degrees in guilt. He had warned them, but he had joined in their unjust design.