When Abu Jahl came to know that the Muslims had assembled at Badr, he advanced to Badr. When the Muslim force came to know that the Quraish force was advancing to Badr they occupied the wells in the valley, and encamped in the rocky part of the valley. When the Quraish reached Badr they occupied that part of the valley which was plain. The Muslims had not come prepared for a full-fledged war, they had merely intended an ambush and a minor show down. Now a full-fledged battle was forced on them. That was to be the first armed conflict between the Muslims and the Quraish. There were heavy odds against the Muslims the Quraish force was three times the force of the Muslims in strength. The Quraish force was fully equipped, while the Muslim force was ill equipped. The Quraish could fight on horseback while the Muslims had to fight on foot. Greater part of the night before the battle was spent by the Holy Prophet in prayers, the Holy Prophet prayed: "O Lord I beseech you to fulfil the promise that you have given to me. O Lord, if you allow this band of the Muslims to perish, there will be none to worship you on the earth. " Abu Bakr and Ali kept watch over the Holy Prophet by turn. Allah assured the Holy Prophet that He would not allow the Muslims to perish, and that He would help them in their war against the unbelievers.