in the immediate vicinity of badr, the prophet [pbuh] and his cavemate abu bakr conducted a scouting operation during which they managed to locate the camp of quraish. they came across an old bedouin nearby whom they manipulated and managed to extract from him the exact location of the army of the polytheists.