i heard always ke ANhazrat(saws) said, as mentioned over,
ke kissi ka dil na dukhao, kionke ansoo tumhare liye saza bann jaayenge. (although i never found a hadis about this, so i dont know the right words for this saying)
but i think that if said, then in another concept of saying. kissi ka dil zulm kar ke na dukhao.
kioNke agar sach bol kar ya koi acha kaam kar ke kissi ka dil dukha rahe ho to doesnt matter. iss tarah to Anhazrat (saws) ne khud itne kuffar-e-makka ka dil dukhaya yeh keh kar ke Allah aik hai aur baaqi saare khuda jhoote hain.