Adhyāya 166: Kṛtaghna-doṣa (कृतघ्नदोषः) — the fault of ingratitude and the limits of expiation
यदेकरात्रेण करोति पाप॑ निकृष्टवर्ण ब्राह्मण: सेवमान: । स्थानासनाभ्यां विहरन् व्रती स त्रिभिर्वर्ष: शमयेदात्मपापम्
yad ekarātreṇa karoti pāpaṁ nikṛṣṭavarṇa brāhmaṇaḥ sevamānaḥ | sthānāsanābhyāṁ viharan vratī sa tribhir varṣaiḥ śamayet ātmapāpam ||
Bhishma said: If a Brahmin, even for a single night, serves a person of degraded social standing, or associates with him by sharing the same place or seat, he incurs a moral taint. By living under a vow of discipline and wandering on the earth, he may pacify and remove that sin within three years.
भीष्म उवाच
The verse presents a dharma-śāstric idea of moral taint arising from intimate association (service, sharing place/seat) with someone deemed socially degraded, and prescribes a specific prāyaścitta: sustained vow-observance and wandering for three years to neutralize the incurred sin.
In the Śānti Parva’s instruction on dharma and expiation, Bhishma continues advising Yudhiṣṭhira by citing a rule-like statement: even brief association can generate demerit under certain purity norms, and he states the corresponding remedy and its duration.