The correct option is C Babur
The ruler of Kabul was Babur, when Guru Nanak Dev Ji promulgated his teachings in Kabul. Guru Nanak visited kabul in 1521. He went there during his fourth Udasi (journey). He visited kabul twice. For the first time during the return journey from the Middle East and the second time when he took Shazda (son of Bhai Mardana) to Khorram Shahr (Iran).