Mahabharata (Jyotisha Selections) · by Vyasa
Chapter 3 · Vana Parva: Omens, Yuga Signs, Abhijit and Karna's Dream
वनपर्व
अभिप्रायमथो ज्ञात्वा महेन्द्रस्य विभावसुः ।कुण्डलार्थे महाराज सूर्य्यः कर्णमुपागतः ॥
In the full Mahabharata this is Vana Parva, chapter 299, verse 6.
Then Vibhavasu knew the wish of Mahendra. O great king, the Sun came to Karna for the sake of the earrings.
Simple meaning: The Sun knew Indra's plan and came to Karna because of the earrings.
महार्हे शयने वीरं स्पर्द्ध्यास्तरणसंवृते ।
Karna slept on a fine bed. He was trusting, truthful and respectful to Brahmins.
स्वप्नान्ते निशि राजेन्द्र दर्शयामास रश्मिवान् ।
The Sun appeared to Karna in a dream, full of pity and love for his son.
ब्राह्मणो वेदविद्भूत्वा सूर्य्यो योगर्द्धिरूपवान् ।
The Sun came as a Brahmin who knew the Vedas and spoke to Karna kindly for his good.