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 prisoners.

The group's remarks come shortly after U.S. President Donald Trump called on Hamas to release all 20 hostages.

Earlier on Wednesday, Israel’s top general, Eyal Zamir, said the army has entered the second phase of its operation to occupy Gaza, which is expected to displace the blockaded Palestinian enclave's population, amid growing international outrage.

"Tell Hamas to IMMEDIATELY give back all 20 Hostages (Not 2 or 5 or 7!), and things will change rapidly. IT WILL END!" Trump wrote on his social media company, Truth Social.

The president did not elaborate on what measures he would take if the hostages were released or what "end" he was referring to.