It is true that the surrounding Arab countries that united to annihilate Israel put it to the Palestinians but good ultimately leaving them as refugees.
The Arab states were a coalition attempting to stop the ethnic cleansing of the non-Jews under the Jew's Plan Dalet.
The arab states were the arab league and declared their intention to wipe out the Jews as far back as 1947 when Jordan mobilised its troops
Jordan - History - The Tragedy of Palestine
The 1948 Arab-Israeli War
Prior to the UN General Assembly’s November 1947 decision to partition Palestine, King Abdullah had proposed sending the Arab Legion to defend the Arabs of Palestine. Reacting to the passing of the partition plan, he announced Jordan’s readiness to deploy the full force of the Arab Legion in Palestine. An Arab League meeting held in Amman two days before the expiration of the British mandate concluded that Arab countries would send troops to Palestine to join forces with Jordan’s army
Immediately after the proclamation of the state of Israel, Lebanon, Syria, Egypt and Iraq sent troops to join with Jordanian forces in order to defend their brethren, the indigenous inhabitants of Palestine.
Note this is an Islamic source that tells the truth, then we have this that shows the intention was all out genocide of the Jews
Azzam s Genocidal Threat Middle East Quarterly
Of the countless threats of violence, made by Arab and Palestinian leaders in the run up to and in the wake of the November 29, 1947 partition resolution, none has resonated more widely than the warning by Abdul Rahman Azzam, the Arab League's first secretary-general, that the establishment of a Jewish state would lead to "a war of extermination and momentous massacre which will be spoken of like the Mongolian massacre and the Crusades."
War of Extermination
An October 11, 1947 report on the pan-Arab summit in the Lebanese town of Aley,
[9] by
Akhbar al-Yom's editor Mustafa Amin, contained an interview he held with Arab League secretary-general Azzam. Titled, "A War of Extermination," the interview read as follows (translated by Efraim Karsh; all ellipses are in the original text):
Abdul Rahman Azzam Pasha spoke to me about the horrific war that was in the offing… saying:
"I personally wish that the Jews do not drive us to this war, as this will be a war of extermination and momentous massacre which will be spoken of like the Tartar massacre
[10] or the Crusader wars. I believe that the number of volunteers from outside Palestine will be larger than Palestine's Arab population, for I know that volunteers will be arriving to us from [as far as] India, Afghanistan, and China to win the honor of martyrdom for the sake of Palestine … You might be surprised to learn that hundreds of Englishmen expressed their wish to volunteer in the Arab armies to fight the Jews.
"This war will be distinguished by three serious matters. First—faith: as each fighter deems his death on behalf of Palestine as the shortest road to paradise; second, [the war] will be an opportunity for vast plunder. Third, it will be impossible to contain the zealous volunteers arriving from all corners of the world to avenge the martyrdom of the Palestine Arabs, and viewing the war as dignifying every Arab and every Muslim throughout the world …
"The Arab is superior to the Jew in that he accepts defeat with a smile: Should the Jews defeat us in the first battle, we will defeat them in the second or the third battle … or the final one… whereas one defeat will shatter the Jew's morale! Most desert Arabians take pleasure in fighting. I recall being tasked with mediating a truce in a desert war (in which I participated) that lasted for nine months…While en route to sign the truce, I was approached by some of my comrades in arms who told me: 'Shame on you! You are a man of the people, so how could you wish to end the war … How can we live without war?' This is because war gives the Bedouin a sense of happiness, bliss, and security that peace does not provide! …
"I warned the Jewish leaders I met in London to desist from their policy,
[11] telling them that the Arab was the mightiest of soldiers and the day he draws his weapon, he will not lay it down until firing the last bullet in the battle, and we will fire the last shot …"
He [Azzam] ended his conversation with me by saying: "I foresee the consequences of this bloody war. I see before me its horrible battles. I can picture its dead, injured, and victims … But my conscience is clear … For we are not attacking but defending ourselves, and we are not aggressors but defenders against an aggression! …"