Jami` at-Tirmidhi, Book 10, Hadith 59 (Tirmidhi 1025)

Abdur-Rahman bin Abi Laila said:

"Zaid bin Arqam would say four Takbir for our funerals. (Once) he said five Takbir for a funeral so we asked him about that and he said: 'The Messenger of Allah would say those Takbir.'"