what does the bible say?
Satan is a created being (Ezekiel 28:12–17) and, like all created beings, has limits to his knowledge. Indeed, only God is omniscient (1 Kings 8:39). Scripture shows that Satan must search for someone to tempt (Job 1–2; 1 Peter 5:8) and that he isn’t certain what will happen. For example, his attempt to tempt Jesus indicates that he did not know for sure whether Jesus had a weakness (Matthew 4:1–11).
Angels in general, of which Satan is one, don’t know the timing of the end (Mark 13:32), nor did they understand how God was going to save humanity (1 Peter 1:10–12). Indeed, 1 Corinthians 2:8 implies that if Satan had known that crucifixion would bring salvation, he would not have been a party to that.
Even so, Satan is a cunning adversary (Genesis 3:1; 2 Corinthians 11:3), one we must stand on guard against (Ephesians 6:11). But while he is powerful and strategic, he is not omniscient.