We sent every messenger with the language of his nation so that he may clearly explain to them. Then Allah sends astray whom He wills and guides whom He wills. He is The Mighty, The Wise. (Surah Ibrahim: 4)
Allah mentions an extremely important point in this verse viz. “We sent every messenger with the language of his nation so that he may clearly explain to them.” Allah caused the entire human race to issue forth from Sayyidina Adam علیہ السلام and Sayyidah Hawwa.علیہا السلام. They were then divided into various tribes and sects, all having different colours and languages.
The verse does not imply that the Prophets علیہم السلام did not know any other languages. They could have known many languages but they preached to the people in the language that the people knew and understood.