Prayer doesn’t mean a superficial prayer. You should feel the pain of seeing him walking on the wrong path. And don’t keep that pain to yourself. Surrender that pain to God.
A prayer should rise from the depth of your heart, ‘May this person recover soon’, and it will definitely be fulfilled. Even if that doesn’t work, then it is his karma, forget it!