Sunan an-Nasa'i, Book 34, Hadith 13 (Nasa'i 3740)

Sufyan narrated from Ibn Juraij, from 'Ata', from Jabir that the Messenger of Allah said:

"Do not give things on the basis of Ruqba or 'Umra. Whoever is given something on the basis of Ruqba or 'Umra, it belongs to his heirs."