In September 1507, while marching from Kabul to India, Babur went through Little Kabul. On reaching Robat-i-Surkh, he passed Kuruk Sai by the hilliard pass. The Afghans living between Kabul and Laghman knew that Babur was trying to make his escape, and so decided to attack him. When Babur marched out from Jegdalek, the Afghans of Khizrkhel, Shimukhel, Ghilzai or Khalji and Khogyani formed plans of obstructing his march through the Lataband Pass and on the hill which lay to the north of the Lataband Pass. They beat their drums and brandished their swords raising terrific shouts. Babur ordered the troops to ascend the hill and attack the enemy each in the direction nearest to him. His troops advanced and made their way through different valleys and by any approach possible. They got nearer to them, and the Afghans immediately took flight without even shooting an arrow. After driving off the Afghans he reached the top of the ascent. He halted in Nangarhar before the fort of Jalalabad. Here, he separated the army into four divisions who were to move about, some up the country and others down till he received intelligence of both the Afghans and the Uzbeks.