Matsya Purana (Jyotisha Selections) · by Vyasa
Chapter 2 · Graha Shanti
ग्रहशान्तिः
यस्तु पीडाकरो नित्यमल्पवित्तस्य वा ग्रहः ।तञ्च यत्नेन संपूज्य शेषानप्यर्चयेद्बुधः ॥ ७८ ॥
In the full Matsya Purana this is print ch 92 (standard ch 93), verse 78.
A planet may keep causing trouble, or trouble a person of little wealth. The wise one should worship that planet with great care. Then he should worship the rest too.
Simple meaning: A planet that keeps giving trouble should be worshipped first with care. Then the other planets are worshipped too.
ग्रहा गावो नरेन्द्राश्च ब्राह्मणाश्च विशेषतः ।
Planets, cows, kings and brahmins give back honour when honoured. When slighted they can bring harm.
यथा बाणप्रहाराणां कवचम्भवति वारणम् ।
A peace ritual protects against the blows of fate, the way armour protects against arrows.
ग्रहताराबलं लब्ध्वा कृत्वा ब्राह्मणवाचनम् ।
When the planets and stars are strong and blessings are recited, a pavilion is built north-east of the house.