Many years ago the NSA admitted to keeping 30 days of calling for selected foreign countries so they can go back in time and listen. This Washington Post article from 2014 was one of the first public glimpses into their capabilities.