The Messenger of Allah ﷺ cursed the consumer of usuary, the one who enables its consumption, the one who writes it down, the one who witnesses it. He said, "They are all equal."
لَعَنَ رَسُولُ اللَّهِ ﷺ آكِلَ الرِّبَا وَمُوكِلَهُ وَكَاتِبَهُ وَشَاهِدَيْهِ وَقَالَ: «هُمْ سَوَاءٌ۔»