In the next year, 1069, along with OE no Masafusa, who was also gakushi (teacher) of Imperial Prince Takahito, he was appointed as gakushi of new Togu Imperial Prince Sadahito (later Emperor Shirakawa), and came to serve as Togu gakushi for two generations, Takahito and Sadahito.
翌、治暦5年（1069年）には、同じく尊仁親王の学士であった大江匡房とともに新東宮貞仁親王（後の白河天皇）の学士に任じられ、尊仁・貞仁と二代続けて東宮学士を勤めることとなる。