The works of Ādi Śaṅkarācārya

Viṣṇusahasranāmastotram

Verse 222

वरं हुतवहज्वालापुञ्जस्यान्तर्व्यवस्थितिः ।न शौरिचिन्ताविमुखजनसंवासवैशसम् ॥

In plain words

Better to stand still inside a heaped blaze of fire — better that — than the ruin of living among people who have turned their faces away from the thought of Kṛṣṇa.

Close to the Sanskrit

Better the abiding within a mass of flames of the oblation-bearer; not the calamity of dwelling together with people turned away from the thought of Śauri.