Vira Simhavaloka · by Virasimha
Chapter 102 · Akalapalita: past deeds
अकालपलित — कर्मविपाकः
अथाकालपलितस्य कर्मविपाके हेतुमाह । स्वकर्मनिर्द्देशको जन्मांतरे युवैव शुक्लकेशो भवति । स गायत्र्ययुतं जपेत् । तनूपाग्नेसीतीमं मंत्रं जपेत् । तिलैराज्येन जुहुयात्।स्वकृतं सुकृतं न कीर्तयेत् । सुवर्णमन्नमाज्यं दद्यात् । इत्यकालपलितस्य प्रतीकारविधिः ।
Next, according to karmavipaka (fruit of past deeds), the text gives the cause of early grey hair. One who boasts of his own deeds may be born again with white hair while still young. He should do japa (repeating a mantra) of the gayatri (gayatri mantra) ten thousand times. He should repeat the Vedic mantra that begins "tanupa agne si". He should offer sesame and ghee in the homa (fire offering). He should not speak of his own good deeds. He should give gold, food and ghee. This is the method of remedy for early grey hair.
Classical view, not medical advice.