Dr. Doug Bookman suggests that Judas is an example of this verse in that in his anger at being rebuked by Jesus, he gave the devil a foothold.
"In your anger do not sin": Do not let the sun go down while
you are still angry, and do not give the devil a foothold.
When Mary annointed Jesus' feet (John 12), Judas (and the other disciples) scolded her for wasting the perfume. Jesus then scolded Judas (and the others) for scolding Mary. And the sting of that rebuke is apparently what Satan seized upon: "The evening meal was being served, and the devil had already prompted Judas Iscariot, son of Simon, to betray Jesus (John 13:2 NIV)."
Let this be a warning to us all: be slow to anger and quick to forgive.