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.
bukhari:7087Qutaybah b. Saʿīd > Ḥātim > Yazīd b. Abū ʿUbayd > Salamah b. al-Akwaʿ

That he visited Al-Hajjaj (bin Yusuf). Al-Hajjaj said, "O son of Al-Akwaʿ! You have turned on your heels (i.e., deserted Islam) by staying (in the desert) with the bedouins." Salama replied, "No, but Messenger of Allah ﷺ allowed me to stay with the bedouin in the desert." Narrated Yazid bin Abi Ubaid: When ʿUthman bin ʿAffan was killed (martyred), Salama bin Al-Akwaʿ went out to a place called Ar- Rabadha and married there and begot children, and he stayed there till a few nights before his death when he came to Medina.  

البخاري:٧٠٨٧حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ حَدَّثَنَا حَاتِمٌ عَنْ يَزِيدَ بْنِ أَبِي عُبَيْدٍ عَنْ سَلَمَةَ بْنِ الأَكْوَعِ

أَنَّهُ دَخَلَ عَلَى الْحَجَّاجِ فَقَالَ: يَا ابْنَ الأَكْوَعِ! ارْتَدَدْتَ عَلَى عَقِبَيْكَ تَعَرَّبْتَ۔ قَالَ: لاَ، وَلَكِنَّ رَسُولَ اللَّهِ ﷺ أَذِنَ لِي فِي الْبَدْوِ۔  

وَعَنْ يَزِيدَ بْنِ أَبِي عُبَيْدٍ قَالَ لَمَّا قُتِلَ عُثْمَانُ بْنُ عَفَّانَ خَرَجَ سَلَمَةُ بْنُ الأَكْوَعِ إِلَى الرَّبَذَةِ وَتَزَوَّجَ هُنَاكَ امْرَأَةً وَوَلَدَتْ لَهُ أَوْلاَدًا فَلَمْ يَزَلْ بِهَا حَتَّى قَبْلَ أَنْ يَمُوتَ بِلَيَالٍ فَنَزَلَ الْمَدِينَةَ

See similar narrations below:

Collected by Ṭabarānī
tabarani:6298Abū Muslim al-Kashhī > al-Qaʿnabī > Ḥātim > Yazīd b. Abū ʿUbayd > Salamah b. al-Akwaʿ

[Machine] Al-Qa'nabi narrated from Hatim, who narrated from Yazid ibn Abi Ubayd, who reported from Salamah ibn al-Akwa that he entered upon Al-Hajjaj and said, "O son of al-Akwa, have you turned back on your heels and apostacized?" He replied, "No, but the Messenger of Allah ﷺ granted me permission for grazing livestock in the desert."  

الطبراني:٦٢٩٨حَدَّثَنَا أَبُو مُسْلِمٍ الْكَشِّيُّ

ثنا الْقَعْنَبِيُّ ثنا حَاتِمٌ ثنا يَزِيدُ بْنُ أَبِي عُبَيْدٍ عَنْ سَلَمَةَ بْنِ الْأَكْوَعِ أَنَّهُ دَخَلَ عَلَى الْحَجَّاجِ فَقَالَ يَا ابْنَ الْأَكْوَعِ ارْتَدَدْتَ عَلَى عَقِبِكَ تَبَدَّيْتَ؟ قَالَ «لَا وَلَكِنَّ رَسُولَ اللهِ ﷺ أَذِنَ لِي فِي الْبَدْوِ»