Tur, Orach Chayim 428
טור, אורח חיים תכ״ח
Tur, Orach Chayim 428
From the beginning of the year until the 17th of Tammuz the haftarahs are selected by thematic matching to the weekly Torah portions, but from then onward they follow the time and the event—specifically the three haftarahs of destruction (telata depuranusta), seven of consolation, and two of reproof; the three of destruction begin with Jeremiah's words for parashat Pinchas on the Shabbat before Tisha b'Av, while the vision (Chazion) is the haftarah for that Shabbat.
ח' פסוקים אחרונים שבתורה אין מפסיקין בהן אלא יחיד קורא כולם בפסיקתא מבראשית עד י"ז בתמוז מפטירין מענין הפרשיות דומה בדומה ומשם ואילך לפי הזמן ולפי המאורע תלתא דפורענותא ושבע דנחמתא ותרתי דתיובתא תלתא דפורענותא דש"ח דברי ירמיהו לפ' פנחס שמעו דבר י"י לראשי המטות חזון לאלה הדברים בשבת שלפני ט"ב.