President Donald Trump delivered a rare presidential critique of the Federal Reserve, saying he hoped the central bank would stop raising interest rates.

“I am not happy about it,” Mr. Trump said about interest-rate increases, in an interview Thursday with CNBC.

His comments departed from a convention in which presidents have refrained from...