https://en.wikipedia.org/wiki/Israeli_support_for_Hamas
> In February 2020, former Mossad Director Yossi Cohen and Israeli general Herzi Halevi, under Netanyahu's orders, went to Qatar to plead Qatari officials to continue the payments for Hamas.[8] Later, in September 2023, David Barnea, the Director of Mossad since 2021, went to Qatar to meet Qatari officials to discuss about the payments for Hamas.[10][44]
(...)
> Israeli intelligence officials believe that the money had a role in the success of 2023 Hamas-led attack.[10]