1 Samuel 17:16

And the Philistine drew near morning and evening, and presented himself forty days.

Cross-reference

Luke 4:2 Typology

Luke 4:2 also mentions a forty-day period of testing—Jesus' temptation parallels Goliath's forty-day challenge to Israel.