Rep. Matt Gaetz apologized for a tweet that accused President Donald Trump’s former lawyer Michael Cohen of infidelity and deleted the offending tweet following an admonishment by Speaker of the House Nancy Pelosi.

Gaetz, a Florida Republican and ally of the president, appeared to openly intimidate Cohen less than 24 hours before Cohen publicly testifies against his old boss in the House Oversight and Reform Committee.

“Hey @MichaelCohen212 – Do your wife & father-in-law know about your girlfriends? Maybe tonight would be a good time for that chat. I wonder if she’ll remain faithful when you’re in prison. She’s about to learn a lot…” the Florida Republican tweeted Tuesday afternoon.

Gaetz later deleted it, telling Pelosi on Twitter that it was not his intent to threaten Cohen and that he “should have chosen words that better showed my intent.”