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.
abudawud:4357Ibn Muʿādh from my father > al-Masʿūdī > al-Qāsim Bihadhih al-Qiṣṣah

The tradition mention above has also been transmitted by Abu Musa through a different chain if narrators. But there is no mention of demand of repentance.  

أبو داود:٤٣٥٧حَدَّثَنَا ابْنُ مُعَاذٍ حَدَّثَنَا أَبِي حَدَّثَنَا الْمَسْعُودِيُّ عَنِ الْقَاسِمِ بِهَذِهِ الْقِصَّةِ قَالَ

فَلَمْ يَنْزِلْ حَتَّى ضُرِبَ عُنُقُهُ وَمَا اسْتَتَابَهُ