A version of ‘Alqama and al-Aswad quotes ‘A'isha to the same effect, with the addition that he then prayed in it.