His descent is unknown.[1][2] However, there is a popular legend regarding him narrated by the 17th century poet Ferishta, which says that he was a servant of a Brahmin astrologer named Gangu (Gangadhar Shastri Wabale) of Delhi and he was himself called Hasan Gangu. Historians have not found any corroboration for the legend.[3][4][5]