国語辞典
According to the Kōjien Japanese dictionary and the Kanjigen dictionary of Chinese character source meanings, it is originally derived from the Sanskrit "upadhyaya", meaning "master" in the sense of "teacher".