Israel has been a better friend to ISIS than Hamas.
Hamas was denounced as "un-islamic" by ISIS, many times.
Israel published strategic articles crying that the destruction of ISIS was a mistake - https://besacenter.org/destruction-islamic-state-strategic-mistake
Now that ISIS has lost its territory, Israel has had to take over ISIS's job killing Palestinian children.