Per Wikipedia, the idea that the IDF is the "most moral army in the world" comes from Colonel Richard Kemp, a retired British army officer. https://en.wikipedia.org/wiki/Purity_of_arms
It's a throwaway line Israeli officials have been using for a long time. I heard Netanyahou himself use it to describe the IDF and explain it can't possibly do wrong.