yasmin harir bhagavan ijyamana
ijyatma-murtir yajatam sam tanoti
kaman amoghan sthira-jangamanam
antar bahir vayur ivaisa atma
yasmin—in such sacrificial ceremonies; harih—the Supreme Lord; bhagavan—the Personality of Godhead; ijyamanah—being worshiped; ijya-atma—the soul of all worshipable deities; murtih—in the forms; yajatam—those who worship; sam—welfare; tanoti—spreads; kaman—desires; amoghan—inviolable; sthira-jangamanam—of all the moving and nonmoving; antah—within; bahih—outside; vayuh—air; iva—like; esah—of all of them; atma—spirit soul.
In all sacrificial ceremonies, although sometimes a demigod is worshiped, the Supreme Lord Personality of Godhead is worshiped because He is the Supersoul of everyone, and exists both inside and outside like the air. Thus it is He only who awards all welfare to the worshiper.
It is even sometimes seen that demigods like Indra and Candra are worshiped and offered sacrificial awards, yet the rewards of all such sacrifices are awarded to the worshiper by the Supreme Lord, and it is the Lord only who can offer all welfare to the worshiper. The demigods, although worshiped, cannot do anything without the sanction of the Lord because the Lord is the Supersoul of everyone, both moving and nonmoving.
"Whatever a man may sacrifice to other gods, O son of Kunti, is really meant for Me alone, but it is offered without true understanding."
The fact is that the Supreme Lord is one without a second. There is no God other than the Lord Himself. Thus the Supreme Lord is eternally transcendental to the material creation. But there are many who worship the demigods like the sun, the moon and Indra, who are only material representatives of the Supreme Lord. These demigods are indirect, qualitative representations of the Supreme Lord. A learned scholar or devotee, however, knows who is who. Therefore he directly worships the Supreme Lord and is not diverted by the material, qualitative representations. Those who are not so learned worship such qualitative, material representations, but their worship is unceremonious because it is irregular.
Link to this page: https://prabhupadabooks.com/sb/1/17/34