Barack Obama actually said...
I urged that the investigations and prosecution of the coup's perpetrators be conducted in ways that reinforce public confidence in democratic institutions and the rule of law.
Context
Readout of the President's Call with President Recep Tayyip Erdogan of Turkey
07/18/2016