In 1867, following the death of Caliph
Ali Karami (r. 1866–1867), a succession dispute emerged in
Sokoto. The two contenders for the position were
Ahmad al-Rufa’i, a son of
Usman dan Fodio, and
Abubakar Atiku, a son of Muhammad Bello. Hayatu recommended Rufa’i, arguing his greater qualification as a son of Usman, which ultimately resulted in Rufa’i's appointment as caliph. From 1867 to 1873, Hayatu served as one of Rufa'i's closest advisers. In the late 1860s, Hayatu succeeded his father as the commander of the ribat of Gandi. After ruling for a few years, he returned to Sokoto during the reign of Abubakar Atiku (r. 1873–1877), who succeeded his uncle Rufa'i. The primary reason behind his resignation (or removal) from Gandi is unclear.
Martin Njeuma suggested that he "ran into problems with the principal inhabitants, and he was relieved of his duties by popular action." However, Asma'u G. Saeed notes that the large population of non-Muslim slaves in the ribat, some of whom had considerable political influence, made it difficult for learned Islamic scholars like Hayatu to implement
Sharia law. She further added that, of the four commanders who ruled Gandi—namely Ibrahim (a son of Muhammad Bello), Sa’id, Hayatu, and Buhari (Hayatu's younger brother)—only the first died there while the remaining three left. Not long after returning to Sokoto, in 1878, Hayatu left the city and settled in
Adamawa, located at the easternmost end of the caliphate. The exact reason for his emigration is unclear, but several theories have been proposed.
Siegfried Passarge, a German traveler, suggested that Hayatu was undertaking the
pilgrimage to Mecca. Historian Sa'ad Abubakar suggested that "Hayatu may have become disenchanted with affairs in Sokoto after his father’s failure to become Caliph." Saeed remarked that the reason behind his emigration, and that of "many other scholars," was likely due to his perceived "declining moral and intellectual standards within the
Sokoto Caliphate." She further added that "Hayatu stood for the revival of Islam and had come to believe that this time, the inspiration was coming from outside the territory of the Caliphate as predicted by the Shehu." According to Njeuma, some of Hayatu's followers in
Maroua and Balda claim that he had a supernatural revelation prior to leaving Sokoto, which made him "aware that the fulfillment of Uthman's prediction that the
Mahdi would appear before the end of Uthman's jihad was at hand." However, Njeuma suggests that:Adamawa was one of the richest emirates, and one with a stable regime. Adamawa's ruler,
Sanda, had a special admiration for learned men and wanted them in his emirate. In Adamawa Hayatu would command respect not only as a descendant of Uthman but also for his personal merit as a learned man. The state of learning in Adamawa still offered much scope for development compared with some of the emirates in
Hausaland. == In Adamawa ==