The earliest Jain literature, specifically the Agama Sutras, was compiled in Ardh-Magadhi Prakrit, which was a language spoken in the Magadha region where Mahavira preached.