The positive wire (red wire) of the LED should be connected to the electrical bus (24volt positive), typically to a fuse/breaker downstream of the master switch. The negative of the LED (black wire) should be connected to the fault monitor wire (wire out the side of the battery) of the battery.
Step 1: install the 24V LED light thru a hole in your control panel.
Step 2: cut the black wire to length desired for your installation so the LED’s black wire reaches the battery.
Step 3: use a wire stripper to remove ¼” of the wire insulation so you can attach the “male” spade connector to the black wire. Crimp the male spade connector to black wire.
Step 4: plug the male spade connector into the end of the pigtail wire from the battery.
Step 5: connect the red wire to an electrical bus fuse/breaker (.25-1 AMP). May have to untwist wire and cut to length. Most of the time it is most convenient to connect to a fuse on the back side of the panel. If not, it could also be connected directly to the positive terminal of the battery with a ¼” ring lug connector.