@tehstu That's an interesting question! The Conversation says mostly Iran, although interestingly there is (was?) some domestic production of weapons in Gaza.
https://theconversation.com/where-do-israel-and-hamas-get-their-weapons-220762
Reuters says funding comes mostly from Iran and Qatar.