حَدَّثَنَا سَعِيدٌ قَالَ: نا ابْنُ عَيَّاشٍ، عَنِ أَبِي بَكْرِ بْنِ أَبِي مَرْيَمَ، عَنْ عَطِيَّةَ بْنِ قَيْسٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ كَانَ «إِذَا لَحِقَ الرَّجُلُ مِنْ أَصْحَابِهِ الْعَدُوَّ فَقَتَلَ فِيهِمْ، أَوْ زَنَى، أَوْ سَرَقَ، ثُمَّ أَخَذَ أَمَانًا عَلَى نَفْسِهِ بِمَا أَصَابَ، فَأَعْطَاهُ الْأَمَانَ، لَمْ يَقُمْ عَلَيْهِ مَا أَصَابَ فِي الشِّرْكِ، وَإِذَا أَصَابَ فِي الْإِسْلَامِ شَيْئًا مِنْ ذَلِكَ فَلَحِقَ بِالشِّرْكِ، ثُمَّ أَخَذَ عَلَى نَفْسِهِ أَمَانًا، فَإِنَّهُ يُقَامُ عَلَيْهِ مَا فَرَّ مِنْهُ»
It is narrated from Atiyyah bin Qais (may Allah have mercy on him) that it was the practice of the Messenger of Allah (peace and blessings be upon him): "If any of his companions joins the enemy and commits murder, adultery, or theft, then seeks amnesty, the matter from the time of polytheism is forgiven. But if he does so in Islam, then turns to polytheism, the prescribed punishment will be carried out upon him."
Brief Explanation
This narration is weak and mursal, therefore it is not an independent proof. However, its meaning is supported by other authentic texts, so it is worth mentioning for the purpose of corroboration (istinaas).