Manusmriti
एते चतुर्णां वर्णानामापद्धर्माः प्रकीर्तिताः । यान् सम्यगनुतिष्ठन्तो व्रजन्ति परमं गतिम् ॥ १३० ॥
The duties of the four castes (varna) in times of distress have thus been declared, and if they perform them well, they will reach the most blessed state.
english translation
ete caturNAM varNAnAmApaddharmAH prakIrtitAH । yAn samyaganutiSThanto vrajanti paramaM gatim ॥ 130 ॥
hk transliteration by Sanscript