The Báb describes His own genealogy in Sahifih Baynu’l-Haramayn (The Treatise Between the Two Shrines):
“Say: My name is Muhammad after the word ‘Alí [i.e., ‘Alí-Muhammad]. And the name of My father, as hath been revealed in the Book of God, is Ridá after Muhammad. And the name of My grandfather in the Book of God is Ibráhím [Abraham], and his father is named Nasru’lláh as has been revealed in the Qur’án (Fathu’lláh)"
The same genealogy is given in the Qayyúmu'l-Asmá, Surih al-Qaribih, verses 14—15. (Provisional translation, Footnotes to ‘The Báb in Shiraz, An Account by Mírzá Habíbu’lláh Afnán’, provided by Ahang Rabbani)