The earliest reference to the Magadha people occurs in the Atharva-Veda where they are found listed along with the Angas, Gandharis, and Mujavats.
Where is the earliest mention of Magadha people?
Atharva-Veda