Vaetchanan 5767: Rectifying the Sin of the Spies Through Tisha B'Av

How did Chazal know to correlate the crying of Bnei Yisrael upon hearing the spies' report with the crying of Tisha B'Av over the churban?