I was one of the Naqibs who gave the ('Aqaba) Pledge of Allegiance to Messenger of Allah ﷺ . We gave the pledge of allegiance to him that we would not worship anything other than Allah, would not steal, would not commit illegal sexual intercourse, would not kill a person whose killing Allah has made illegal except rightfully, would not rob each other, and we would not be promised Paradise jf we did the above sins, then if we committed one of the above sins, Allah will give His Judgment concerning it. (Using translation from Bukhārī 3893)
أَنَّهُ قَالَ إِنِّي مِنَ النُّقَبَاءِ الَّذِينَ بَايَعُوا رَسُولَ اللهِ ﷺ وَقَالَ بَايَعْنَاهُ عَلَى أَنْ لَا نُشْرِكَ بِاللهِ شَيْئًا وَلَا نَزْنِيَ وَلَا نَسْرِقَ وَلَا نَقْتُلَ النَّفْسَ الَّتِي حَرَّمَ اللهُ إِلَّا بِالْحَقِّ وَلَا نَنْتَهِبَ وَلَا نَعْصِيَ؛ فَالْجَنَّةُ إِنْ فَعَلْنَا ذَلِكَ فَإِنْ غَشِينَا مِنْ ذَلِكَ شَئْئًا فَإِنَّ قَضَاءَ ذَلِكَ إِلَى اللهِ ﷻ