for example
https://www.holy-bhagavad-gita.org/chapter/7/verse/20
BG 7.20: Those whose knowledge has been carried away by material desires surrender to the celestial gods. Following their own nature, they worship the devatās, practicing rituals meant to propitiate these celestial personalities.
However, Rama himself prayed to RigVedic God Surya (Aditya Hridayam) before the final battle with Ravana.