Vishnudharmottara Purana (Jyotisha Selections) · by Vyasa
Chapter 9 · Graha Shanti: Offerings, Homa and Dakshina for Each Graha and Nakshatra
ग्रहर्क्षोपचाराः होमदक्षिणाश्च
पराभिचारशङ्कायां ग्रहशान्तिं प्रयोजयेत् ।दिव्यान्तरिक्षमौमानामुत्पातानां तथोद्भवे ॥ ८ ॥
In the full Vishnudharmottara Purana this is Khanda 1, chapter 105, verse 8.
If black magic by an enemy is feared, one should do the shanti (peace ritual) for the planets. Do it also when omens arise in the sky, the air or the earth.
Simple meaning: A peace ritual for the planets is done when black magic or strange omens are feared.
उत्तरेण बुधः पातु केतुः पातु तथा ह्यधः ।
Mercury, Ketu, Venus and Rahu are asked to protect from four sides.
पश्चिमोत्तरतश्चन्द्रो जीवः प्रागुत्तरेण तु ।
The Moon, Jupiter and all the nakshatras are asked to protect from the remaining sides.
ग्रहाधीना नरेन्द्राणामुच्छ्रायाः पतनानि च ।
The rise and fall of kings and the world depend on the planets.