قَالَ أَوْسَطُهُمْ أَلَمْ أَقُل لَّكُمْ لَوْلَا تُسَبِّحُونَ Qur’an Al-Qalam (68:28)Q a la awsa t uhum alam aqul lakum lawl a tusabbi h oon a
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.