It is narrated from Hazrat Anas (may Allah be pleased with him) that Sa'di says: I asked Hazrat Anas (may Allah be pleased with him), "Did the Prophet (peace and blessings be upon him) perform the funeral prayer for his son Ibrahim (may Allah be pleased with him)?" He replied, "I do not know. May Allah's mercy be upon Ibrahim (may Allah be pleased with him). If he had lived, he would have been a Siddiq and a Prophet." I asked, "After performing the prayer, should I return from the right side or the left side?" He replied, "I have seen that the Messenger of Allah (peace and blessings be upon him) returned from the right side after performing the prayer."
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 13985
Hadith Gradingحکم دارالسلام:إسناده حسن، م: 708 مختصرا بقصة الصلاة، ولقوله: "ولو عاش كان صديقا نبيا" انظر: 12358