A Question Of Intention While In Prayer
As told earlier, the intention to please anything or anyone which can be a rival to God wil be counted as shirk or riyakari. The example you quote does not fall in this category.
@Irfan76 okay sir i understand, but sir when someone does worship to earn money from someone, we say that this is also RiyaKari, but at that instance no one else is being pleased for that, but still we say it’s Shirk, can you please explain the difference sir?
yes. Consider, it is not mathematical. Consider human nature and how our conscience works