President Donald Trump told Hamas that he wants all hostages released, and the Trump administration is in contact with "all sides regarding the war in Gaza," a White House spokesperson said.