President Donald Trump said Saturday that a recording of him talking about payments to a former Playboy Playmate may have been illegal, making his most pointed criticism yet of Michael Cohen, who until recently was Mr. Trump’s personal attorney.

Mr. Trump posted a message on Twitter that it was “inconceivable that a lawyer would tape a client - totally unheard of & perhaps illegal. The good news is that your favorite President did nothing wrong!”

Mr....