Jami` at-Tirmidhi, Book 15, Hadith 16 (Tirmidhi 1349)

Abu Hurairah narrated:

"The Messenger of Allah (ﷺ) cursed the one who bribes and the one who takes a bribe for a judgement."