Issue About Intentions For Worship Acts In The Context Of Rayakari (showing Off)
To do an act of worship to be praised or gain something from others along with the intention of pleasing God is shirk, as you rightly wrote. The Hadith you mentioned is not reliable. Mr Hassan Ilyas has analyzed it in one of his essays. However, since children has not developed consciousness to understand religious concepts we teach them worship rituals to facilitate them to adopt these in their later life with consciousness. It is not practical to let the children grow without training them in cultural rituals and norms in a void.
@irfan76 sir there’s one more question in this theme that o wanted to ask, there is a Hadith that is mentioned Allah Almighty said: Verily, I have no need of any partners. Whoever performs a deed in which he associates another besides Me, I will abandon him and his partner. Source: Ṣaḥīḥ Muslim 2985, My question is that what is the explanation of this Hadith? Does it mean those people who do any act with intention of pleasing Allah and someone else for example, A person goes into gym with 2 intentions, one is to take care of the body that Allah has given him with intention of thanking Allah for his blessing so to please Allah and also because he wants to give company to his friend at the gym and so to please him as well. (note that both intentions are permissible when done separately, the only difference is that one act is done here with a part of both intentions) Or It means those who do Shirk, like in rayakari or like setting up partners with Allah in those acts which are done solely for Allah, which are acts of worship, like someone praying namaz, or fasting etc, those who do those for Allah and for someone or something else, like? They will have no share from Allah