Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:5:38

˹As for˺ the thief, the male and the female, amputate their hands in recompense for what they committed as a deterrent ˹punishment˺ from Allah. And Allah is Exalted in Might and Wise.  

And the thieving male and the thieving female (the definite article in both ˹nouns˺ relates to the subject ˹sc. wa’lladhī saraqa wa’llatī saraqat, ‘And the male who thieves and the female who thieves’˺; because this ˹clause˺ resembles a conditional statement ˹sc. ‘if he thieves, if she thieves’ etc.˺ the fā’ has been included in the predicate ˹fa’qta‘ū, ‘then cut off’˺) cut off their hands, that is, the right hand of each of the two from the wristbone; it is explained in the Sunna that the amputation applies to ˹the stealing of˺ a quarter of a dinar and upwards, and if the person were to re-offend, the left foot should then be amputated from the ankle, and then ˹on subsequent re-offending˺ the left hand ˹is amputated˺, followed by the right foot, after which discretionary punishment is applied; as a requital (jazā’an is in the accusative because it is a verbal noun) for what they have earned, and an exemplary punishment, for both of them, from God; God is Mighty, His way will prevail, Wise, in His creation.
القرآن:٥:٣٨

وَالسَّارِقُ وَالسَّارِقَةُ فَاقْطَعُوا أَيْدِيَهُمَا جَزَاءً بِمَا كَسَبَا نَكَالًا مِنَ اللَّهِ ۗ وَاللَّهُ عَزِيزٌ حَكِيمٌ  

{والسارق والسارقة} أل فيهما موصولة مبتدأ ولشبهه بالشرط دخلت الفاء في خبره وهو {فاقطعوا أيديهما} أي يمين كل منهما من الكوع وبينت السنة أن يقطع فيه ربع دينار فصاعدا وأنه إذا عاد قطعت رجله اليسرى من مفصل القدم ثم اليد اليسرى ثم الرجل اليمنى وبعد ذلك يعزر {جزاء} نصب على المصدر {بما كسبا نكالا} عقوبة لهما {من الله والله عزيز} غالب على أمره {حكيم} في خلفه.