It is narrated from Abdullah bin Amr bin Al-As (may Allah be pleased with him) that the Messenger of Allah (ﷺ) said: "Whoever kills a sparrow or anything smaller than that without a just cause, Allah will question him about its killing." It was asked: "O Messenger of Allah (ﷺ)! What is its right?" He (ﷺ) said: "That he should slaughter it and then eat it, and not cut off its head and then use it for target practice."
Hadith Referenceمسند الإمام الشافعي / كتاب القتل والقصاص والديات والقسامة / 1615