Google, Yahoo, Microsoft, Facebook and others were all paid by the NSA for their trouble complying with its domestic spying program, according to a new report from the Guardian.

The news source deems this the “first evidence of a financial relationship between the tech companies and the NSA.”

Complying with the Foreign Intelligence Surveillance court ruling, which required the companies to pass on certain information about American’s communications to the spy agency, cost the companies a significant sum, according to the classified document leaked to the Guardian by whistleblower Edward Snowden.

“Last year’s problems resulted in multiple extensions to the certifications’ expiration dates which cost millions of dollars for Prism providers to implement each successive extension – costs covered by Special Source Operations,” the document states.