Malik bin Hubairah Ash-Shami, who was a Companion of the Prophet (ﷺ), said:
“If a funeral procession was brought and the number of people who followed it was considered to be small, they would be organized into three rows, then the funeral prayer would be offered.” He said: “The Messenger of Allah (ﷺ) said: ‘No three rows of Muslims offer the funeral prayer for one who has died, but he will be guaranteed (Paradise).’”