WASHINGTON >> President Joe Biden had terse words for Prime Minister Benjamin Netanyahu on Friday, and said he didn’t know whether the Israeli leader was holding up a Mideast peace deal in order to influence the outcome of the 2024 U.S. presidential election.

No administration has helped Israel more than I have. None. None. None. And I think Bibi should remember that,” he said, referring to the Israeli leader by his nickname. “And whether he’s trying to influence the election, I don’t know, but I’m not counting on that.”

Biden, in a rare appearance in the White House press briefing room, was responding to comments made by one of his allies, Sen. Chris Murphy, D-Conn., who told CNN this week that he was concerned Netanyahu had little interest in a peace deal in part because of U.S. politics.

“I don’t think you have to be a hopeless cynic to read some of Israel’s actions, some of Prime Minister Netanyahu’s actions, as connected to the American election,” Murphy said.

Biden and Netanyahu have long managed a complicated relationship, but they’re running out of space to maneuver as their views on the Gaza war diverge and their political futures hang in the balance.

For Biden, a diplomatic deal would help resolve a deep divide among Democrats over the war and shore up support for Vice President Kamala Harris, making one fewer global conflict for her to manage should she win next month. Netanyahu has his own political concerns closer to home: His far-right coalition would abandon him if he stopped the war, and he could lose power and have to face his own legal problems. And Israel has been decimating Hezbollah’s leadership, so there is little incentive to stop now.

Biden has long pushed for a diplomatic deal, and he and his aides have indicated several times over the past few months that such an agreement was close. But it never seems to materialize, and in some cases, Netanyahu has publicly resisted the prospect while U.S. and Israeli officials continue to talk in private about eking out a deal.

Just last week, the U.S., France and other allies jointly called for an immediate 21-day Israel-Hezbollah cease-fire, and expected Israel to welcome if not fully endorse the plan. Instead, Netanyahu publicly rejected it, telling leaders gathered for the U.N. General Assembly that Israel would “continue degrading Hezbollah until all our objectives are met.”

Israel has pressed forward on two fronts, killing top Hezbollah leaders and pursuing a ground incursion into Lebanon and conducting strikes in Gaza that killed dozens, including children. And the nation has vowed to retaliate for Iran’s ballistic missile attack this week.

Oil prices rose 5% Thursday as concerns mounted that Israel would hit Iranian oil facilities as payback; a surge in gas prices so close to the election would be a blow to Harris, particularly after strong economic news Friday.

Biden said there had been no decision yet on what type of response there would be toward Iran, though “I think if I were in their shoes, I’d be thinking about other alternatives than striking oil fields.