I have never heard of that prayer, to be honest.
There is something that goes through my mind with this, words from one of my church leaders. I am not trying to preach, I am just sharing it.
“The entire message of the New Testament breathes a spirit of awakening to the human soul. Shadows of despair are dispelled by rays of hope, sorrow yields to joy, and the feeling of being lost in the crowd of life vanishes with the certain knowledge that our Heavenly Father is mindful of each of us.
The Savior provided assurance of this truth when He taught that even a sparrow shall not fall to the ground unnoticed by our Father.”
-Thomas S Monson, April 1985 General Conference of The Church of Jesus Christ of Latter-Day Saints-
This second paragraph teaches me that not even a sparrow dies without God noticing it. God knows Sophie died, and I am sure He will comfort me.