Muwatta Malik, Book 15, Hadith 512 (In-Book)

Yahya related to me from Malik that he had heard that the Messenger of Allah, may Allah bless him and grant him peace, used to make dua saying, "O Allah, I askYou for good actions and for leaving what is disapproved of and for love of the poor. And if You wish to try people, then bring me to You without being tried." Allahumma inniy asa'luka fala'l-khayrati, wa tarqa'l-munqarati, wa hubba'l-masakin, wa idha aradta fi'n-nasi fitnatan fa'qbithni ilayka ghayra maftun.

وَحَدَّثَنِي عَنْ مَالِكٍ، أَنَّهُ بَلَغَهُ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يَدْعُو فَيَقُولُ ‏ "‏ اللَّهُمَّ إِنِّي أَسْأَلُكَ فِعْلَ الْخَيْرَاتِ وَتَرْكَ الْمُنْكَرَاتِ وَحُبَّ الْمَسَاكِينِ وَإِذَا أَرَدْتَ فِي النَّاسِ فِتْنَةً فَاقْبِضْنِي إِلَيْكَ غَيْرَ مَفْتُونٍ ‏" ‏ ‏.‏

sunnah.com

also referenced under: Book 15, Hadith 40 (USC-MSA)