B.G 17.04
यजन्ते सात्त्विका देवान् यक्षरक्षांसि राजसाः। भूतान् प्रेतगणांश्चान्ये यजन्ते तामसा जनाः ॥४॥
People in the mode of goodness worship gods, those in the mode of passion worship yakṣas and rākṣasas, and those in the mode of ignorance worship ghosts and spirits.
Gīta Bhāshya 17.04
Faith is classified based on nature of worship.
कः सात्त्विकश्रद्धः इत्यादि विभज्याह - यजन्त इत्यादिना ॥४॥
Who is of pure faith, etc., is explained by classifying the worship, among other things.
Gīta Tātparya 17.04
A testimonial is provided elaborating various kinds of worship. Saatvik faith is the steadfast belief in God, the Lord Vishnu, with a clear understanding of his supremacy everywhere, all the time. Those with the right faith, even when they are ignorant of the scriptures, their conduct is abiding in scriptural injunctions, as they are without false knowledge. Saatvik worship results in liberation, Rajasik worship leads to perpetual rebirth, and Tamasic worship results in permanent dark regions.
श्रद्धेत्यास्तिक्यनिष्ठोक्ता सा येषां दैवतोत्तमे। विष्णौ तद्भक्तबुद्ध्यैव रमाब्रह्मादिकेषु च॥
Faith is described as the steadfast belief in God, particularly in the supreme deity Vishnu, and is understood through devotion to Lakshmi, Brahma, and others.
ते सात्त्विका इति ज्ञेयाः तैरिष्टं विष्णुरेव तु। श्रीश्च साध्यक्षविद्याख्या ब्रह्मेन्द्राद्याश्च देवताः॥
They are recognized as Saatvik, and it is through them that Vishnu alone is worshipped. Alongside Vishnu, deities such as Lakshmi, Sadhya, Aksha, and those associated with knowledge like Brahma and Indra are also revered.
विबुधत्वात्तु मन्वाख्या भुञ्जते प्रीतिपूर्वकम्। व्यामिश्रयाजिनो ये तु विष्ण्वाधिक्ये ससंशयाः॥
Those who are wise, known as Manu, enjoy with affection. However, those who perform mixed sacrifices to Lord Vishnu are filled with doubts.
स्वरूपमात्रे देवानां श्रद्धायुक्ताश्च सर्वदा। राजसास्ते तु विज्ञेयाः तैरिष्टं यक्षराक्षसाः॥
Those who are always endowed with faith only in the mere form of the gods are known to be in the mode of passion, and they desire Yakṣas and Rākṣasas.
दीनत्वात् देवनामानो ब्रह्मेन्द्रादिसनामकाः। गृह्णन्ति ये हरिं तु अन्यदेवादिसममेव तु। नीचं ब्रह्माद्यनन्यं वा मन्यन्ते नेति चाखिलम्॥
Due to their humility, those who bear divine names like Brahma and Indra accept Hari but regard him as equal to other gods or as low, or as non-different from Brahma, etc., thus not considering him as the supreme.
तत्तत् श्रद्धायुतास्ते तु तामसाः परिकीर्तिताः। भूतप्रेतास्तु तैरिष्टं शिवस्कन्दादिनामकाः। साक्षात् शिवपरीवारा भुञ्जते हि अतितामसाः॥
Those who are filled with such faith are considered ignorant. They worship ghosts and spirits, naming them as Shiva, Skanda, and others. Truly, Shiva's attendants enjoy the company of those who are extremely ignorant.
मोक्षः साङ्कल्पिकः स्वर्गो भूतादित्वं फलं क्रमात्। त्यक्त्वापि शास्त्रविहितं मिथ्याज्ञानविवर्जिताः॥
भक्त्या विष्णुं यजन्तो ये निषिद्धाचरणोज्ज्ञिताः। तेपि यान्ति हरिं शास्त्रविधानस्थाः कुतः पुनः॥
Liberation, the conceptual idea of heaven, and the attainment of a lower nature of being - are the results respectively (for Sattvik, Rajasik, and Tamasic). Those who worship Viṣṇu with devotion, even if freed from forbidden conduct, also reach Hari by abiding in scriptural injunctions. Even when they are not following the scriptural prescriptions consciously, they remain free from false knowledge. Why question again?