Sunan an-Nasa'i #2024
The Book of Funerals 21:208
Ash-Shaibani narrated that Ash-Sha'bi said:
"Someone who saw the Prophet pass by an isolated grave told me that he offered the funeral prayer there and his Companions formed rows behind him." It was said: "Who told you this?" He said: "Ibn 'Abbas."