Keeping in mind that I’m not an expert on Islam by any metric, I don’t think there’s any religious prohibitions, because executing people was something that ISIS was notorious for. I’ll also note that this tendency was one of the reasons everyone else in the region dogpiled them.