It was narrated from 'Abdur-Rahman bin Bishr bin Mas'ud, who attributed the Hadith to Abu Sa'eed Al-Khudri, that mention of that (coitus interruptus) was made to the Messenger of Allah and he said:
Why do you do that? We said: A man may have a wife, and he has intercourse with her, but he does not want her to get pregnant, or he may have a concubine, and he has intercourse with her, but he does not want her to get pregnant. He said: It does not make any difference if you do that, for it is the matter of Al-Qadr.