Xthe Messenger of Allah (ﷺ) cursed the one who consumes usury, the one who pays it, those who witness it and the one who writes it down.
Sunan Ibn Majah Book 12, Hadith 141