Chapter 10 · The Divine Glories · Krishna said
Bhagavad Gita 10.21 — Vishnu, sun and moon
आदित्यानामहं विष्णुर्ज्योतिषां रविरंशुमान्। मरीचिर्मरुतामस्मि नक्षत्राणामहं शशी ॥
ādityānāmahaṃ viṣṇurjyotiṣāṃ raviraṃśumān | marīcirmarutāmasmi nakṣatrāṇāmahaṃ śaśī ||
Meaning
Among the Adityas I am Vishnu, among lights I am the radiant sun. Among the Maruts I am Marichi, and among the stars of the night I am the moon.