The Brook of Egypt is not the Nile River. It refers to a wadi (a dry riverbed that fills with water during the rainy season). This wadi marked the border between Canaan and Egypt and flowed toward the Mediterranean Sea (see 1 Kings 8:65). I
In Old Testament times, Israel had little control over this southern coastal area.