Charak Samhita
स मूढचेता न सुखं न दुःखं नाचारधर्मौ कुत एव शान्तिम्। विन्दत्यपास्तस्मृतिबुद्धिसञ्ज्ञो भ्रमत्ययं चेत इतस्ततश्च ॥७॥
Thus, the person with deranged mind does not know pleasures, pain, ethics and eternal duties and does not get peace anywhere. Therefore, he lets the mind wander here and there due to loss of memory, intellect and perceptions.
english translation
sa mUDhacetA na sukhaM na duHkhaM nAcAradharmau kuta eva zAntim। vindatyapAstasmRtibuddhisaJjJo bhramatyayaM ceta itastatazca ॥7॥
hk transliteration by Sanscript