Sunan Abi Dawud, Book 9, Hadith 110 (Abu Dawud 1666)

Narrated Ali ibn Abu Talib:

The Prophet (ﷺ) said: A beggar has the right though he may be riding (a horse).