Al-Firasi asked the Messenger of Allah (ﷺ): May I beg, Messenger of Allah? The Prophet (ﷺ) said: No, but if there is no escape from it, beg from the upright.
Sunan Abi Dawud Book 9, Hadith 91