Sunan an-Nasa'i, Book 21, Hadith 71 (Nasa'i 1893)

Something similar was narrated from Umm 'Atiyyah except, that he (the narrator) said:

"Three times or five, or seven, or more than that, if you think that (is necessary)."