This hadith is mentioned in a book named "Nahjul Fasahat" which consists of short sayings of Holy Prophet (PBUH).
The Arabic text of hadith is as following:
اِضمَنوا لى سِتّا مِن اَنفُسِكُم اَضمَن لَكُمُ الجَنَّةَ اُصدُقُوا اِذا حَدَّثتُم و َأوفُوا اِذا وَعَدتُم و َاَدُّوا اِذا ائتُمِنتُم و َاحفَظوا فُروجَكُم و َغُضّوا اَبصارَكُم وَ كُفّوا اَيديَكُم؛
«نهج الفصاحه ص216 ، ح 321»
https://books.shiatiger.com/2016/01/nahj-ul-fasaha.html?m=1
Urd book link