Short answer
Temporary contraception has been permitted by many Islamic scholars under certain circumstances, while details and conditions can differ between schools and scholars.
Islamic Guidance
What Islam teaches
The practice of 'azl is documented in authentic hadith and forms an important basis for the classical discussion of temporary contraception.
Practical Guidance
What you can consider
If choosing temporary contraception, discuss it mutually and obtain guidance from a qualified scholar who understands the couple's circumstances.
Sources
Sahih al-Bukhari, Book of Marriage; Sahih Muslim, Book of Marriage.