Answer:
Sugawara no Michizane.
Step-by-step explanation:
The scholar and poet you're referring to is Sugawara no Michizane. He's widely regarded as one of the top poets in the history of Japan, especially Kanshi poetry, or poetry written in Chinese language by Japanese writers. He came from a family of scholars, and entered Japanese bureaucracy after a civil service test. However, he rose beyond the usual ranks of bureaucracy thanks to then emperor Uda, who used him as a counterweight to the powerful Fujiwara family, which dominated imperial politics at the time. However, on the year 901 the emperor's son Daigo exiled him to Kyushu island on northern Japan, where he died a couple of years later. A series of political and natural disasters struck Japan around the time of his death, and they were attributed to Michizane's angry spirit. He was deified as the god of learning in order to placate his spirit, and several decades later, he already had shrines devoted to him as a recognition of his achievements.