Matsya Purana (Jyotisha Selections) · by Vyasa
Chapter 2 · Graha Shanti
ग्रहशान्तिः
पूर्वेण भार्गवं विद्यात् सोमं दक्षिणपूर्वके ।पश्चिमेन शनिं विद्याद्राहुं पश्चिमदक्षिणे ।पश्चिमोत्तरतः केतुं स्थापयेच्छुक्लतण्डुलैः ॥ १२ ॥
In the full Matsya Purana this is print ch 92 (standard ch 93), verse 12.
Place Venus to the east and the Moon to the south-east. Place Saturn to the west and Rahu to the south-west. Set up Ketu to the north-west. Lay them out with white rice grains.
Simple meaning: Venus goes east, Moon south-east, Saturn west, Rahu south-west and Ketu north-west, set out with white rice grains.
भास्करस्येश्वरं विद्यादुमाञ्च शशिनस्तथा ।
Shiva goes with the Sun, Uma with the Moon, Skanda with Mars and Vishnu with Mercury.
ब्रह्माणञ्च गुरोर्विद्याच्छुक्रस्यापि शचीपतिम् ।
Brahma goes with Jupiter, Indra with Venus, Yama with Saturn and Kala with Rahu.
केतोर्वै चित्रगुप्तञ्च सर्वेषामधिदेवताः ।
Chitragupta goes with Ketu. Agni, the waters, earth, Vishnu, Indra and Indrani begin the second set of gods.