Doing An Act Of Worship To Receive Rewards In This World
This has nothing to do with Riyakri. Make clear what is Riyakari. It is to please someone else other than God through an act which is meant to be done only for the pleasure of Allah. In your cited case, this is a desirable act of belief that the perosn believes that God can save him.