Imam al-Shafi'i (may Allah have mercy on him) said: "Do you not see that it became evident to the Messenger of Allah (peace and blessings be upon him) about some people that they had committed theft (from the spoils) in the path of Allah, yet he (peace and blessings be upon him) did not punish them? Had (discretionary) punishment been binding like a hadd punishment, he (peace and blessings be upon him) would not have left them, just as the Messenger of Allah (peace and blessings be upon him) cut off the hand of a woman of (a) noble (family), and when intercession was made with him (peace and blessings be upon him) concerning her, he (peace and blessings be upon him) said: 'If so-and-so, (that is,) a noble woman, had stolen, I would have cut off her hand.'"
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الأشربة والحد فيها / Q17552