Sunan Ibn Majah, Book 9, Hadith 125 (Ibn Majah 1969)
It was narrated from Abu Hurairah:
that the Messenger of Allah said: "Whoever has two wives and favors one of them over the other, he will come on the Day of Resurrection with one of his sides leaning."