Bhagavad Gita 13.26
Others, again, having no direct knowledge but only hearing from others, still worship, and, if they are true to the teachings, they too will cross the sea of death.
अन्ये त्वेवमजानन्तः श्रुत्वाऽन्येभ्य उपासते।तेऽपि चातितरन्त्येव मृत्युं श्रुतिपरायणाः॥anye tvevamajānantaḥ śrutvā'nyebhya upāsate|te'pi cātitarantyeva mṛtyuṃ śrutiparāyaṇāḥ||
English translation (above): Shri Purohit Swami (1935), public domain. Sanskrit text via github.com/gita/gita (Unlicense).