U.S. Middle East mediator Philip C. Habib met Lebanese President Amin Gemayel in Beirut yesterday, and reports differed on whether the two made progress toward achieving withdrawal of foreign forces from Lebanon.

Habib then flew to Israel, ending a two-day stay in Beirut. Reuter quoted official sources as saying that Habib was carrying some ideas that could free the snagged negotiations, but state-run Beirut radio said that Gemayel had advanced no new proposals.

"There is no hurry. We are obliged to get what we want," the Lebanese newspaper An Nahar quoted a Lebanese official as saying. The paper's sister publication, the weekly An Nahar Arab and International, reported that Secretary of State George P. Shultz recently told Lebanese Foreign Minister Elie Salem that Israel will pull out its troops by no later than mid-June.

The private Central News Agency said that Gemayel stuck to his nation's refusal to allow Israeli patrols in southern Lebanon, United Press International reported. Gemayel also told Habib that Lebanon could not accept Israel's suggestion that cashiered Lebanese Army major Saad Haddad, head of an Israeli-allied militia in southern Lebanon, should be given major responsibility for security in the region.

In neighboring Jordan, Saudi Foreign Minister Saud Faisal arrived in Amman in a round of diplomatic activity aimed at reviving President Reagan's Middle East peace plan.

Jordan's King Hussein is seeking approval from the Saudis and from the Palestine Liberation Organization on terms under which he could enter U.S.-sponsored talks on achieving Palestinian self-government in the Israeli-occupied West Bank, Reuter reported.

PLO Chairman Yasser Arafat was scheduled to arrive in Amman today. The Reagan plan calls for creation of a Palestinian entity on the West Bank to be associated with Jordan.

Western diplomats said that King Hussein would agree to enter peace talks only with the condition that the United States secure a freeze on building of new Jewish settlements on the West Bank and achieve real progress on Israeli withdrawal from Lebanon.

Meanwhile, Egypt criticized Israel for blocking a comprehensive Middle East settlement.

Commenting on yesterday's fourth anniversary of Egypt's peace treaty with Israel, Minister of State for Foreign Affairs Boutros Ghali told reporters in Cairo that lasting peace in the region had not been achieved because of Israel's "intransigence and its desire to annex the West Bank and Gaza."

The peace process initiated by the 1979 treaty had been jeopardized because of Israel's invasion of Lebanon in June and its annexation of East Jerusalem and the Golan Heights, Ghali said.

In other Middle East-related developments:

* In Prague, delegations from the PLO and the Israeli Communist Party held "warm and friendly talks" and called for establishing an independent Palestinian state with Arab East Jerusalem as its capital, the Palestinian news agency Wafa reported.

* The Lebanese government called in troops to put down a disturbance in which Shiite Moslems stoned police in a low-income Beirut neighborhood. The protest erupted after troops swept through the neighborhood and rounded up 28 persons in connection with attacks last week on the Beirut multinational peace-keeping force.

* Egyptian President Hosni Mubarak is scheduled to begin a four-day state visit to China on April 1, the first leg of a tour including North Korea, Japan and Indonesia.