Exile target creature or planeswalker that's black or red. Scry 1. (Look at the top card of your library. You may put that card on the bottom of your library.)
If the target creature or planeswalker is an illegal target by the time Devout Decree tries to resolve, the spell doesn’t resolve. You won’t scry 1.