The hag appears by the Yomotsu-shikome (or Ugly-Female-of-the-Underworld"[1]) name in the eldest Japanese chronicle Kojiki.
But either eight demon-hags (female oni) or a woman/women named Yomotsu-hisame hunted after Izanagi according to the Nihon Shoki, which frequently gives different readings from alternative sources.
Izanagi first cast down his black headdress,[a] which turned into a kind of grapes[b] and slowed the hag's advance as she devoured them.
Izanagi brandished his Totsuka-no-Tsurugi (十拳剣) but still they pursued, until he climbed atop the "flat slope" or "Even Pass"[1] at the entrance to the Underworld, and flung three peaches, whereby the pursuers retreated.
[1][3] Nihon Shoki version Apart from the variant name and the possibility of multiple hags ("eight Ugly Females of Yomi,"[4]) are some minor discrepancies, such as the lack of mention of the Thunder god and the army and the peaches.