Rice does f**king work cause it's happened to me
It would have worked without the rice. Things dry out. Water evaporates. With or without rice.
OP, as already said, rinse thoroughly and leave somewhere warm and dry for at least a few days. Don't waste your rice. You may find that the detergent will cause serious problems on the PCB, so don't skimp on the rinsing stage. Flush that bad boy through with lots of water. Preferably deionised, as previously mentioned.
Oh and who the f**k manages to not notice they're putting a phone in the washing machine? A pound coin perhaps, but a PHONE? :headno: