Ibn Hazm
The principal sources for the battle—all Arabic—are Ibn al-Khatib ("A‘mal al-a‘lam"), Ibn Hazm ("Naqt al-‘arus"), and al-Udri ("Tarsi‘ al-ajbar"), while Ibn Idari ("Boyan"), al-Maqqari ("Nafh al-tib"), and Ibn Alabar (in the biography of Asma, daughter of Galib and wife of Ibn Abi ‘Amir, in his "Tekmila") give brief notices. Ibn Hazm relied for his account on his father, Ahmad ibn Hazm, a vizier who took part in the battle on the side of Ibn Abi ‘Amir, while Ibn al-Khatib appears to have relied on Ibn Hazm. No Christian or Latin source mentions the battle, but the "Anales castellanos segundos" states that "the Moors took Atienza" ("prendiderunt mauri Atenza") in the year 1018 of the Spanish era ("era mile XVIII"), which correspondsd to 980. Atienza was conquered, not from the Christians, but from Galib's partisans as a result of their defeat at Torrevicente. The year, however, was 981.