A man said, "Messenger of Allah, I have a Jariya, and I practice withdrawal with her. I dislike the idea of her becoming pregnant, yet I desire what men desire. The Jews claim that withdrawal is the lesser form of burying a child alive."He replied, "The Jews have lied. If Allah willed to create a child, you would not be able to prevent it."
حدثنا موسى بن إسمعيل حدثنا أبان حدثنا يحيى أن محمد بن عبد الرحمن بن ثوبان حدثه أن رفاعة حدثه
أن رجلا قال يا رسول الله إن لي جارية وأنا أعزل عنها وأنا أكره أن تحمل وأنا أريد ما يريد الرجال وإن اليهود تحدث أن العزل موءودة الصغرى قال كذبت يهود لو أراد الله أن يخلقه ما استطعت أن تصرفه
[Its chain of transmission is daif] Bayhaqi narrated it, 7/230, from the hadith of Abu Dawud through this route. Ahmad, 3/33, and Nasai in Kubra, no. 9079, also narrated it from the hadith of Yahya bin Abu Kathir.Rifa is of unknown status, but the hadith of Bayhaqi, 7/230, suffices in his place.