the motive for this Q is that I learned some evidence that aisha was not six or seven at the time of her marriage and I want to know the Earliest written hadith book which says she was 6 or seven .
Al-Bukhārī, Muslim and others narrate through various transmitters from Hishām bin ʿUrwa, from his father, from Aisha, that the Prophet [(peace and blessings of God be upon him)] married her when she was six years old and wed her when she was nine. Muslim narrates it through Maʿmar, from al-Zuhrī, from ʿUrwa, from Aisha. Ibn Ḥanbal in this Musnad and Muslim also narrated through al-Aswad bin Yazīd al-Nakhaʿī from Aisha. There are also other chains that go back to her for this hadith.
Ibn Abī Shayba [d. 849 CE, an early Persian scholar of hadith and hadith collector] narrate through al-Aswad from Aisha that the Prophet [(peace and blessings of God be upon him)] wed her when she was nine and that he died when she was eighteen.
Al-Tirmidhī (9th century CE) narrates in al-ʿIlal al-Kabīr from Yaḥyā bin Aktham from Yaḥyā bin Ādam from Isrāʾīl bin Yūnus from his grand father Abū Isḥāq from Abū ʿUbayda from his father ʿAbdullāh bin Masʿūd that he said: “The Prophet [(peace and blessings of God be upon him)] concluded the marriage contract with Aisha when she was six years old and consummated the marriage with her when she was nine, and he passed away when she was eighteen.” Al-ʿUqaylī [d. 934, a hadith scholar] mentions this narration in al-Ḍuʿafāʾ [his collection of unauthentic narrations] from Muḥammad bin Mūsā al-Balkhī from Mālik bin Sulaymān al-Harawī from Isrāʾīl. And al-Ṭabarānī narrates it in al-Kabīr from Muḥammad bin Mūsā bin Ḥammād al-Barbarī from ʿAbd al-Raḥmān bin Ṣāliḥ al-Azdī from Yaḥyā bin Ādam from Shurayk from Abū Isḥāq from Abū ʿUbayda from Ibn Masʿūd.