Sunan an-Nasa'i, Book 23, Hadith 153 (Nasa'i 2592)

It was narrated from Ibn Al-Firasi that Al-Firasi said to the Messenger of Allah:

"Shall I ask people (for help), O Messenger of Allah?" He said: "No, but if you have no alternative but to ask, then ask the righteous."