صحیح ابن حبان
Ibn Hibban
كتاب الصلاة
Book of Prayer
باب سجود السهو - ذكر البيان بأن على القائم من الركعتين ساهيا إتمام صلاته وسجدتي السهو قبل السلام لا بعد
Chapter on Prostration of Forgetfulness - Clarification that one who stands up from two units out of forgetfulness should complete the prayer and prostrate before salam
1 hadith
Hadith 2677
Sayyiduna Ibn Buhaina (may Allah be pleased with him) narrates: The Prophet Muhammad (peace and blessings be upon him) stood up after performing two rak‘ahs instead of sitting. The people also stood up with him. When he sat after performing four rak‘ahs and the people were waiting for him to say salam, he said takbeer, then went into prostration, then said takbeer, then went into prostration again. This happened before he said salam.