At the beginning of the month of Safar al-Khair in the year 1232 AH / 1816 CE, the teacher attended Ghali from the tribal side, with correspondence from Muhammad Bey, who took over the Emirate of Upper Egypt instead of Ibrahim Pasha Ibn al-Basha, who went to the Hijaz countries to fight Wahhabism in which he mentions the advice of the teacher Ghali and his endeavor to open the doors of collecting money To the treasury, and that he invented something and accounts from which many amounts of money were obtained, and he was met with satisfaction and honor, and he took the pasha and assigned him and made him a clerk of his secret, and he was required to serve him, and he took what he was assigned to and attended for him, which includes the accounts of all the notebooks and pens of innovators and their directors and regional rulers. On the first Rabi` al-Awwal 1235 AH / 1819 CE, the Pasha Muhammad Bey dismissed the Defterdar from the Emirate of Upper Egypt and imitated Ahmed Pasha Ibn Taher Pasha in his place and traveled in his fifth. On the seventh, the pasha traveled to Alexandria to inspect the canal, and accompanied him, his son Ibrahim Pasha, Muhammad Bey, the Daftardar, the old Kakhda, and Dabus Ugly.