It comes from something called the "Gharqad Tree Hadith". A hadith is the muslim equivalent of a blog post dating more than a thousand years ago. It has no canonical value, it's an opinion piece by an individual. https://en.wikipedia.org/wiki/Gharqad
And no, again you're wrong: it isn't part of the current charter either. You can read the actual content here: https://en.wikipedia.org/wiki/2017_Hamas_charter#Contents
I would recommend reading more about this because your knowledge of the subject seems extremely poor and ressembles low value talking points you usually hear on talk shows.
If anything, please share sources to back your genocidal claims.
We saw it in their actions on 10/7: they want the mass murder of civilians. Their leaders have called for global jihad time and again.