(CNN) Michael Cohen, the longtime personal attorney for President Donald Trump, filed court papers Wednesday indicating he would assert his Fifth Amendment rights against self-incrimination regarding his involvement in a hush money deal involving porn star Stormy Daniels and the President.

Cohen cited FBI raids of his residence, office and hotel room and the seizure of "various electronic devices and documents in my possession," in his filing in US District Court in Los Angeles.

"Based upon the advice of counsel, I will assert my Fifth Amendment rights in connection with all proceedings in this case due to the ongoing criminal investigation by the FBI and US Attorney for the Southern District of New York," Cohen said.

Cohen filed the declaration as part of an effort to have a civil lawsuit filed by Daniels put on hold. The judge in that case said last week that he needed to hear from Cohen directly before deciding on that request.

Michael Avenatti, Daniels' attorney, called Cohen's declaration "a stunning development."

Read More