Bhagavad Gita: Chapter 1, Verse 40-41

कुलक्षये प्रणश्यन्ति कुलधर्माः सनातनाः ।
धर्मे नष्टे कुलं कृत्स्नमधर्मोऽभिभवत्युत ॥ १-४० ॥

kula-kṣaye praṇaśyanti kula-dharmāḥ sanātanāḥ
dharme naṣṭe kulaṁ kṛtsnam adharmo ’bhibhavaty uta 1.40

With the destruction of the dynasty, the eternal family tradition is vanquished, and thus the rest of the family becomes involved in irreligion.

अधर्माभिभवात्कृष्ण प्रदुष्यन्ति कुलस्त्रियः ।
स्त्रीषु दुष्टासु वार्ष्णेय जायते वर्णसङ्करः ॥ १-४१ ॥

adharmābhibhavāt kṛṣṇa praduṣyanti kula-striyaḥ
strīṣu duṣṭāsu vārṣṇeya jāyate varṇa-saṅkaraḥ 1.41

When irreligion is prominent in the family, O Krishna, the women of the family become immoral; and from the immorality of women, O descendant of Vrishni, unwanted progeny is born.