The Messenger of Allah ﷺ cursed the one who accepted usury, the one who paid it, the witness to it, and the one who recorded it. (Using translation from Abū Dāʾūd 3333)
أَنَّ النَّبِيَّ ﷺ لَعَنَ آكِلَ الرِّبَا وَمُؤْكِلَهُ وَشَاهِدَيْهِ أَوْ قَالَ شَاهِدَهُ وَكَاتِبَهُ