Raising an Orphan Before Converting

AsalaamuAlaikum

You had quoted the following hadith:Rasulullaah (SAW) once held his index and middle fingers together and said, “The one who raises an orphan and myself will be like this on the Day of Qiyaamah.”
I am a revert but as a non Muslim when I married my first wife, who subsequently passed away, I adopted her three year old son who had been abandoned by his father. Although I was not a Muslim at the time would this apply to that situation?
Jazakallah

1 thought on “Raising an Orphan Before Converting”