Hamas said it rejects Donald Trump's suggestion that Gaza residents should leave the territory.