I have a slave-girl and I practise 'azl with her, whereupon Messenger of Allah ﷺ said: This cannot prevent that which Allah has decreed. The person then came (after some time) and said: Messenger of Allah, the slave-girl about whom I talked to you has conceived, whereupon Allah's Messeuger ﷺ said: I am the servant of Allah and His Messenger.
سَأَلَ رَجُلٌ النَّبِيَّ ﷺ فَقَالَ إِنَّ عِنْدِي جَارِيَةً لِي وَأَنَا أَعْزِلُ عَنْهَا فَقَالَ رَسُولُ اللَّهِ ﷺ إِنَّ ذَلِكَ لَنْ يَمْنَعَ شَيْئًا أَرَادَهُ اللَّهُ قَالَ فَجَاءَ الرَّجُلُ فَقَالَ يَا رَسُولَ اللَّهِ إِنَّ الْجَارِيَةَ الَّتِي كُنْتُ ذَكَرْتُهَا لَكَ حَمَلَتْ فَقَالَ رَسُولُ اللَّهِ ﷺ أَنَا عَبْدُ اللَّهِ وَرَسُولُهُ