Isaiah 37:36 [NIV]; Then the angel of the LORD went out and put to death a hundred and eighty-five thousand men in the Assyrian camp. When the people got up the next morning--there were all the dead bodies!
So God killed a hundred and eighty-five
thousand men overnight. Does that mean that God broke His own commandment? No. Why? Because there is a difference between killing and murder. You can read the whole chapter if you want to know
why God did it.
Isaiah 37 - Passage*Lookup - New International Version - BibleGateway.com