Confirm you’re comfortable writing it. Politely declining is perfectly OK if you don’t feel you can write a strong or meaningful recommendation. It’s better to be honest than to provide a lukewarm ...