In 1852, Muhammad Yaqub was appointed as a teacher in Government College Ajmer. At the recommendation of the College principal, he was offered the post of Deputy collector, which he rejected. He was transferred to Banaras, and later promoted to the post of Deputy Inspector, Saharanpur. Students of Muhammad Yaqub include most of the second-generation Islamic scholars
Hafiz Muhammad Ahmad,
Khalil Ahmad Saharanpuri and
Ashraf Ali Thanwi. which was translated into Arabic by
Arif Jameel Mubarakpuri as
Al-Imām Muhammad Qasim An-Nanawtawi Kama Ra’aituhu. ==Death and legacy==