Washington (CNN) Republican Rep. Mark Meadows of North Carolina praised both President Donald Trump and Meadows' friend Rep. Elijah Cummings on Monday after the President targeted the Maryland Democrat with attacks on his character and home district over the weekend.

Meadows -- who had been cast into the middle of the fray between Trump and Cummings due to his close relationship with both men -- made his remarks in a text message sent to CNN political commentator Rick Santorum, a former Republican senator from Pennsylvania, who read the message Monday on CNN's "The Lead with Jake Tapper."

Santorum said Meadows had given him permission to read the message publicly.

"No one works harder for his district than Elijah," Meadows said in the text message. "He's passionate about the people he represents, and no, Elijah is not a racist. I'm friends with both President Trump and Chairman Cummings. I know them both well and neither is a racist."

On Saturday, Trump had lashed out at Cummings, the House Oversight Committee chairman , who had recently lambasted conditions at the border. Trump suggested that conditions in Cummings' district, which is majority black and includes parts of Baltimore, are "FAR WORSE and more dangerous" than those at the US-Mexico border and called it a "very dangerous & filthy place."

Read More