Translation
(56) Fighting for the Cause of Allah (Jihaad)
كتاب الجهاد والسير
(194) Chapter: There is no emigration after the Conquest
(194) باب لاَ هِجْرَةَ بَعْدَ الْفَتْحِ
Sahih al-Bukhari 3077 

Narrated Ibn `Abbas:

The Prophet (ﷺ) said, on the day of the Conquest of Mecca, "There is no migration (after the Conquest), but Jihad and good intentions, and when you are called for Jihad, you should immediately respond to the call."

حَدَّثَنَا آدَمُ بْنُ أَبِي إِيَاسٍ، حَدَّثَنَا شَيْبَانُ، عَنْ مَنْصُورٍ، عَنْ مُجَاهِدٍ، عَنْ طَاوُسٍ، عَنِ ابْنِ عَبَّاسٍ ـ رضى الله عنهما ـ قَالَ قَالَ النَّبِيُّ صلى الله عليه وسلم يَوْمَ فَتْحِ مَكَّةَ ‏ "‏ لاَ هِجْرَةَ وَلَكِنْ جِهَادٌ وَنِيَّةٌ، وَإِذَا اسْتُنْفِرْتُمْ فَانْفِرُوا ‏"‏‏.‏
Reference : Sahih al-Bukhari 3077
In-book reference : Book 56, Hadith 282
USC-MSA web (English) reference : Vol. 4, Book 52, Hadith 311
  (deprecated numbering scheme)