Jafar al-Sadiq and intercourse

And Jaafar Al-Sadiq said: ~Whoever sees that he has intercourse and is obligated to do ghusl, then this dream is invalidated by ejaculation because it is the act of the Devil .~