Do you need a passport to travel by bus from Mexico to panama?

Yes, you do.