BEIRUT, Lebanon — Saad Hariri of Lebanon pulled back on Wednesday from his resignation as prime minister, another surprise move that seemed to bring to a close a three-week international drama and to stem the threat of new political turmoil in the country.

Mr. Hariri, speaking from the Presidential Palace in Lebanon during celebrations of the country’s Independence Day, said he had agreed to delay his resignation to allow for dialogue with other political leaders about the relations with the rest of the region.

Mr. Hariri had announced his resignation suddenly from the Saudi capital, Riyadh, on Nov. 4, saying that he had fled an assassination plot. He also warned that Iran was behind unrest in the region and said that Tehran’s “hands” would be “cut off.”

His abrupt departure from Lebanon, uncharacteristically direct language, and the fact that he did not inform even his closest aides of his intention to resign convinced many Lebanese, as well as Western diplomats, that Saudi Arabia had forced Mr. Hariri to announce his resignation. The move appeared to be an effort to isolate Hezbollah, the Iranian-backed militia and political party, by collapsing the government it participates in with Mr. Hariri.