Бухарский эмират
In 1839 the occupation of Afghanistan by British drove Amir Dost Muhammad Khan into exile. He visited successively Khulam and Kunduz and was well received. They could not aid him against British and Dost Muhammad proceeded to the Emirate of Bukhara. The Emirate of Bukhara was then governed by Amir Nasrullah Khan who was addicted to the society of boys. Sher Ali Khan The son Dost Muhammad Khan was then a beardless youth and Nasrullah Khan coveted him. The Afghan pride of Sher Ali was however inflamed and he informed his father and brothers of the insulting desire of Nasrullah Khan. Dost Muhammad Khan then determined to leave Emirate of Bukhara but he found himself a prisoner and with difficulty escaped together with his sons to Balkh. Also in 1839, Mir Muhammad Murad Beg again attacked Rustak in Badakhshan and appointed an officer of his own in Farkhar. Two months later he also attacked Mashad. But he failed to obtain a footing in Badakhshan which remained in possession of its hereditary Mirs.