There is nothing in Scripture that alludes to that so I'd be really careful with going there.
God allowed it, but I do not believe for one minute that it was God.
It goes against other passages of Scripture that state that God does not tempt us with evil