Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:28:19

And when he wanted to strike the one who was an enemy to both of them, he said, "O Moses, do you intend to kill me as you killed someone yesterday? You only want to be a tyrant in the land and do not want to be of the amenders."  

But when (fa-lammā an: an is extra) he was about to strike the man who was an enemy to both of them, to Moses and the one seeking his help, he, the one seeking help, supposing that Moses was about to strike him, because of what he ˹Moses˺ had said to him, said: ‘O Moses, do you want to slay me just as you slew a soul yesterday? You merely want to be a tyrant in the land, and you do not want to be of the reformers’. The Egyptian heard this and realised that the slayer had been Moses. Thus he hurried off to Pharaoh to inform him of this. Pharaoh then ordered slaughterers to slay Moses, and they set off in his direction.
القرآن:٢٨:١٩

فَلَمَّا أَنْ أَرَادَ أَنْ يَبْطِشَ بِالَّذِي هُوَ عَدُوٌّ لَهُمَا قَالَ يَا مُوسَىٰ أَتُرِيدُ أَنْ تَقْتُلَنِي كَمَا قَتَلْتَ نَفْسًا بِالْأَمْسِ ۖ إِنْ تُرِيدُ إِلَّا أَنْ تَكُونَ جَبَّارًا فِي الْأَرْضِ وَمَا تُرِيدُ أَنْ تَكُونَ مِنَ الْمُصْلِحِينَ  

{فلما أن} زائدة {أراد أن يبطش بالذي هو عدو لهما} لموسى والمستغيث به {قال} المستغيث ظاناً أنه يبطش به لما قال له {يا موسى أتريد أن تقتلني كما قتلت نفساً بالأمس إن} ما {تريد إلا أن تكون جباراً في الأرض وما تريد أن تكون من المصلحين} فسمع القبطي ذلك فعلم أن القاتل موسى فانطلق إلى فرعون فأخبره بذلك فأمر فرعون الذباحين بقتل موسى فأخذوا في الطريق إليه.