As of now, that was "Sandaijitsuroku" (the sixth of the six classical Japanese history texts) edited in the late ninth century in which the term "hyakusho" indicated for the first time, a person engaged in agriculture.
百姓を農民の意味とした初見は、現在のところ9世紀末に編纂された『三代実録』である。