From Sahih Bukhari (Hadith 6807):
Narrated Sahl bin Sa`d:The Prophet (ﷺ) said, "Whoever guarantees me (the chastity of) what is between his legs (i.e. his private parts), and what is between his jaws (i.e., his tongue), I guarantee him Paradise
Reference: Bukhari 6807