Srimad Bhagavatam Canto 09, Chapter 02, Text 09

SB 9.2.9

tam sasapa kulacaryah
 krtagasam akamatah
na ksatra-bandhuh sudras tvam
 karmana bhavitamuna
 
Translation by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
Although Prsadhra had committed the sin unknowingly, his family priest, Vasistha, cursed him, saying, “In your next life you shall not be able to become a ksatriya. Instead, you shall take birth as a sudra because of killing the cow.”
 
Purport by His Divine Grace A. C. Bhaktivedanta Swami Srila Prabhupada: 
 
It appears that Vasistha was not free from tamo-guna, the mode of ignorance. As the family priest or spiritual master of Prsadhra, Vasistha should have taken Prsadhra’s offense very lightly, but instead Vasistha cursed him to become a sudra. It is the duty of a family priest not to curse a disciple but to give him relief through the performance of some sort of atonement. Vasistha, however, did just the opposite. Therefore Srila Visvanatha Cakravarti Thakura says that he was durmati; in other words, his intelligence was not very good.
Srimad Bhagavatam Canto 09, Chapter 02, Text 08
Srimad Bhagavatam Canto 09, Chapter 02, Text 10