Sunan Abi Dawud, Book 2, Hadith 623 (Abu Dawud 1013)

This tradition has also been transmitted by Abu Hurairah through a different chain of narrators. This version goes:

he did not make two prostrations (at the end of prayer) due to forgetfulness until Allah gave him satisfaction about it.