Thousands gather for Hamas rally