A:
First:
Saying: 'By Allah, he does not deserve it' is not permissible; for it is an act of rejecting the Will of Allah (Glorified and Exalted be He). It means that the person does not deserve the affliction he suffers such as a disease, an ordeal, death, or the like. It thus questions the Wisdom of Allah. (Part No. 26; Page No. 361)
Second:
As for saying: 'Shurak wa Hidayat Allah', the surface meaning of the words implies that the person who says it needs his friend's counsel and will submit to the Will of Allah in all cases. This is an acceptable meaning and there is nothing wrong with it. However, if he says: 'Shurak thumma Hidayat Allah' i.e. (I consult you, then it is all up to Allah's Will), it would be better.
Third:
As for saying: "what a poor man!" to someone who is afflicted with some bad matters, meaning 'why does it befall him?" the ruling of the first saying is applied to it.
May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.