Abu Hurairah reported; He then made two prostration on account of forgetfulness after he had given the salutation.

Sunan Abi Dawud Book 2, Hadith 627