President Trump on Thursday criticized former national security adviser Susan Rice for rejecting an invitation to testify in front of a Senate committee on Russian interference in the U.S. election.

Rice declined Wednesday to testify in front of a subcommittee of Senate Intelligence Committee. She had previously become a focus for Republicans after it was revealed that she had requested the identity of Trump campaign officials who had been caught up in legal surveillance, a practice known as "unmasking."

"Susan Rice, the former National Security Advisor to President Obama, is refusing to testify before a Senate subcommittee next week on allegations of unmasking Trump transition officials. Not good!" Trump tweeted.

Trump has used the news of Rice's unmasking as proof that President Obama spied on his campaign during the end of the campaign as he claimed in a series of tweets in March. However, multiple reports indicate Rice's requests came after the election and were normal practice for administration officials. Rice said she never unmasked anyone for political reasons.

Rice was accused of being the person who leaked information about Trump's campaign to the press during the transition, an accusation she has denied.

Trump also took time to criticize the media Thursday morning while praising "Fox and Friends," his favorite morning cable news program.

"The Fake News media is officially out of control. They will do or say anything in order to get attention — never been a time like this!" Trump tweeted.

He added, "Congratulations to @foxandfriends on its unbelievable ratings hike."