In the "Nihon genho zenaku ryoiki" (set of three books of Buddhist stories, written in the late 8th and early 9th century, usually referred to as the Nihon Ryoiki) there are some stories about a person who violated the teachings of Buddhism and got his deserts.
『日本現報善悪霊異記』では仏教の教えに背く行為をした者が報いを受けたという話がいくつか採録されている。