The Palestinian militant group has expressed similar positions in the past, and Prime Minister Benjamin Netanyahu of Israel dismissed its statement as “spin” and “nothing new.”

High-level political and security figures are said to be resisting the prime minister’s demand for a comprehensive deal to end the war in Gaza.

Hamas said Wednesday it is prepared for a comprehensive Gaza deal that would see all Israeli hostages freed in return for an agreed number of Palestinian...