The comment is an apparent swipe at Benjamin Netanyahu and Donald Trump, who both face elections in coming weeks.