Al-Kāfi - Volume 4 > Matters Permissible in the State of al-’ Ihram after Shower, Such as Perfume, Hunting and Others Before Talbiyah (Here I am O Lord, to obey Your command)
Hadith #9

9ـ مُحَمَّدُ بْنُ يَحْيَى عَنْ أَحْمَدَ بْنِ مُحَمَّدٍ عَنِ الْحُسَيْنِ بْنِ سَعِيدٍ عَنِ النَّضْرِ بْنِ سُوَيْدٍ عَنْ بَعْضِ أَصْحَابِهِ قَالَ كَتَبْتُ إِلَى أَبِي إِبْرَاهِيمَ (عَلَيْهِ السَّلاَم) رَجُلٌ دَخَلَ مَسْجِدَ الشَّجَرَةِ فَصَلَّى وَأَحْرَمَ وَخَرَجَ مِنَ الْمَسْجِدِ فَبَدَا لَهُ قَبْلَ أَنْ يُلَبِّيَ أَنْ يَنْقُضَ ذَلِكَ بِمُوَاقَعَةِ النِّسَاءِ أَ لَهُ ذَلِكَ فَكَتَبَ (عَلَيْهِ السَّلاَم) نَعَمْ أَوْ لا بَأْسَ بِهِ.

9. Muhammad ibn Yahya has narrated from Ahmad ibn Muhammad from al-Husayn ibn Sa’id from al-Nadr ibn Suwayd from certain persons of his people who has said the following: “I once wrote to abu Ibrahim, ‘Alayhi al-Salam, about a man who enters Masjid al-Shajarah, performs Salat (prayer) and assumes the state of Ihram, and comes out from the Masjid and before saying Talbiyah he realized that he must cancel it all for sexual intercourse; if he can do so. He (the Imam), ‘Alayhi al-Salam, wrote the answer, ‘Yes,’ or that he (the Imam) said, ‘It is not harmful.’”