What happened when the nephew of Mahmud Ghaznavi raped a woman.

What happened when Mahmud Ghaznavi’s nephew raped a woman.
 
Ibn Kathir said:
وكان عادلا جيدا، اشتكى إليه رجل أن ابن أخت الملك يهجم عليه في داره وعلى أهله في كل وقت، فيخرجه من البيت ويختلي بامرأته، وقد حار في أمره، وكلما اشتكاه لأحد من أولي الأمر لا يجسر أحد عليه خوفا وهيبة للملك.
 
فلما سمع الملك ذلك غضب غضبا شديدا، وقال للرجل: ويحك متى جاءك فائتني فأعلمني، ولا تسمعن من أحد منعك من الوصول إليّ، ولو جاءك في الليل فائتني فأعلمني.
 
ثم إن الملك تقدم إلى الحجبة وقال لهم: إن هذا الرجل متى جاءني لا يمنعه أحد من الوصول إليّ من ليل أو نهار، فذهب الرجل مسرورا داعيا، فما كان إلا ليلة أو ليلتان حتى هجم عليه ذلك الشاب فأخرجه من البيت واختلى بأهله، فذهب باكيا إلى دار الملك فقيل له: إن الملك نائم.
 
فقال: قد تقدم إليكم أن لا أمنع منه ليلا ولا نهارا، فنبهوا الملك فخرج معه بنفسه وليس معه أحد، حتى جاء إلى منزل الرجل فنظر إلى الغلام وهو مع المرأة في فراش واحد، وعندهما شمعة تقد، فتقدم الملك فأطفأ الضوء ثم جاء فاحتز رأس الغلام وقال للرجل: ويحك الحقني بشربة ماء، فأتاه بها فشرب ثم انطلق الملك ليذهب، فقال له الرجل: بالله لم أطفأت الشمعة؟
 
قال: ويحك إنه ابن أختي، وإني كرهت أن أشاهده حال الذبح.
 
فقال: ولم طلبت الماء سريعا؟
 
فقال الملك: إني آليت على نفسي منذ أخبرتني أن لا أطعم طعاما ولا أشرب شرابا حتى أنصرك، وأقوم بحقك، فكنت عطشانا هذه الأيام كلها، حتى كان ما كان مما رأيت.
 
فدعا له الرجل وانصرف الملك راجعا إلى منزله ولم يشعر بذلك أحد.
 
He was extremely Just.
 
A Man came to him complaining that your nephew come to his house and kicks him out and remain with his wife.. And whenever he asked the authorities to do something they would not do something due to the fear of king (i.e. Mahmud). Mahmud said, if he comes again come to me and don’t listen to anyone if someone stops you whether its day or night.
 
The king went to his janitors saying if he comes then let him come to me… After one or two nights that man came to his house and kicked him out and remained with his wife. He came to the king crying, he was stopped by the janitors because the king was sleeping. He said you were ordered to get me in whether day or night. They asked the King and he came with the man alone until reached his house. He saw that the young man is with the wife of the man on the same bed and there is a candle near it.
 
The king turned off the candle and cut the boys head. And asked the man to give him some water.
 
When he was returning back The Man asked him tell me why did you turned the candle off? he replied He was my nephew and i don’t like to see him while killing him. The Man asked why have you asked for water? he replied i took an oath i will not drink or eat until i help you. I am thirsty from the day you have informed me (i.e. 2 nights) until you have seen what happened. The man prayed for him and he went away.
 
[al Bidaya wal Nihaya vol 12 under what happened in 421 h]