Purana Jyotisha Sangraha · by Vyasa
Chapter 8 · Dreams and Eclipse Rules
ब्रह्मवैवर्तपुराणम् : शुभाशुभस्वप्नाः ग्रहणनियमाश्च
चन्द्रस्तारापहरणं कलङ्कमतिदुष्करम् ।तस्मै ददाति हे नन्द कामतो यदि पश्यति ॥ ५८ ॥
From the Brahmavaivarta Purana, print Krishna-janma Khanda ch 78, verse 58.
If he looks by choice, O Nanda, the Moon gives him a stain. It is like the Moon's own carrying off of Tara, very hard to wash away.
Simple meaning: Looking at the Moon on that day on purpose is said to bring a stain on one's name.
अकामतो नरो दृष्ट्वा मन्त्रपूतं जलं पिबेत् ।
One who saw it by accident is said to be cleansed by drinking chant-blessed water.
कुत्रचिद्दिवसे ब्रह्मन् त्वां तत्र कुत्रचित् क्षणम् ।
The text tells the Moon that clouds may cover it at times and free it at once.
न्यूनातिरिक्ते वर्षे च राहुग्रस्तो भविष्यसि ।
The text says the Moon will be seized by Rahu at times, unseen by some and holy to others.