He said to them: "Woe to us! We have disobeyed Allah. We must repent to Allah, Great and Majestic, for what we have done, and I shall pray to Allah to accept our repentance." He prayed so, and Allah revealed to him that He would not accept it: "If they are sincere, they must stay with you in this country (or town)." He told them what Allah had revealed. They said: "How can we stay in this town when it has been devastated and Allah is angry with its people?" So they refused to stay.
Ibn al-Kalbi said that since that time, the children of Israel were dispersed the world over. Some of them went to the Hijaz, Taif and Medina, and others settled in Wadi al-Qura. Some went to Egypt, and Nebuchadnezzar wrote to its king, demanding those who had escaped thither, but he refused. So Nebuchadnezzar mounted his army and fought him. He defeated him and captured their children. Then he marched to the extreme of Morocco. He returned from Morocco, Egypt, Jerusalem, Palestine, and Jordan with many captives, and among them was Daniel.
Ibn al-Kalbi said that it appears that it was Daniel, the youngest son of Ezekiel, and not the elder Daniel, according to Ibn Munbah. Allah knows best.