Sunan Ibn Majah, Book 1, Hadith 94 (In-Book) ⓘ
It was narrated that Jabir said: "A man from among the Ansar came to the Prophet and said: 'O Messenger of Allah, I have a slave girl. Should I do 'Azl (coitus interruptus) with her?' He said 'Whatever is decreed for her shall come to her." He (the Ansari) came to him later on and said: "The slave girl has become pregnant." The Prophet said: "Nothing is decreed for a person but it will surely come to pass."
حَدَّثَنَا عَلِيُّ بْنُ مُحَمَّدٍ، حَدَّثَنَا خَالِي، يَعْلَى عَنِ الأَعْمَشِ، عَنْ سَالِمِ بْنِ أَبِي الْجَعْدِ، عَنْ جَابِرٍ، قَالَ جَاءَ رَجُلٌ مِنَ الأَنْصَارِ إِلَى النَّبِيِّ ـ صلى الله عليه وسلم ـ فَقَالَ يَا رَسُولَ اللَّهِ إِنَّ لِي جَارِيَةً أَعْزِلُ عَنْهَا قَالَ " سَيَأْتِيهَا مَا قُدِّرَ لَهَا " . فَأَتَاهُ بَعْدَ ذَلِكَ فَقَالَ قَدْ حَمَلَتِ الْجَارِيَةُ . فَقَالَ النَّبِيُّ ـ صلى الله عليه وسلم ـ " مَا قُدِّرَ لِنَفْسٍ شَىْءٌ إِلاَّ هِيَ كَائِنَةٌ " .
also referenced under: Hadith 89 (Reference) & Volume 1, Book 1, Hadith 89 (DarusSalam)