Hadith Q1305

وَفِيهِ مَا دَلَّ عَلَى أَنَّ الْبَيْعَ يَنْعَقِدُ وَإِنْ كَانَا عَاصِيَيْنِ بِفِعْلِهِمَا
And in this is evidence that their buying and selling will be concluded, even though they will be sinful because of this action.
Hadith Reference صحيح ابن خزيمه / جماع أبواب فضائل المساجد وبنائها وتعظيمها / Q1305