If a person says a word with the intention of dhikr – for example, he says ‘allāhu akbar’ with the intention of dhikr – and if when saying it he raises his voice to make someone aware of something, there is no problem. Similarly, if a person says a word with the intention of dhikr, then even if he knows that by saying it someone will become aware of some matter, there is no problem. However, if he does not make an intention of dhikr at all, or he makes an intention for both purposes [i.e.
an intention to perform dhikr and an intention to make someone aware of something], then his prayer becomes invalid.[1] However, if he makes an intention of dhikr but his motive for saying it is to make someone aware of something, his prayer is valid.